catch

inline fun <Ok : Any> catch(block: RaiseScope<Throwable>.() -> Ok): Outcome<Ok, 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 Outcome.Failure.

See also