getOrThrow

Returns the Success value, or throws if the outcome is a Failure.

See also

Throws

if the receiver is a Failure.