getOrThrow

abstract fun getOrThrow(): A

Returns the value if a Success otherwise throws the exception if a Failure.