or Throw Exception
Unwrap the result by throwing an Exception that can depend on the kind of failure
if a computation was a Success, return that data. Otherwise calculate and throw an exception, depending on the failure.
Return
The data of a Success. Throws an exception in case of a failure.
Parameters
exceptionProducer
Provides the exception to throw in case of a Failure.