catch
An alias for outcomeOf that uses Throwable as the Error type.
Useful for cases where you want to catch & wrap all exceptions to handle them as Failure.
Return
An Outcome instance containing the result of the block execution.
Parameters
block
The block that provides the value for the success outcome.
See also
inline fun <In, Out : Any> In.catch(block: RaiseScope<Throwable>.(In) -> Out): Outcome<Out, Throwable>
An alias for outcomeOf that uses Throwable as the Error type.
Useful for cases where you want to catch & wrap all exceptions to handle them as Failure.
Receiver
Return
An Outcome instance containing the result of the block execution.
Parameters
block
The block that provides the value for the success outcome.