exceptionOrThrow

Returns the encapsulated Throwable if this instance represents failure.

The mirror of Result.getOrThrow for the failure side.

See also

Throws

If the result is a success.