catch String
inline fun <Ok> catchString(scope: RaiseScope<String> = DefaultRaiseScope(), block: RaiseScope<String>.() -> Ok): Outcome<Ok, String>
Runs block and wraps the result as an Outcome, using String as the error type.
Every thrown Exception is captured and its Throwable.message (or toString if null) is used as the error. Useful for quick prototyping or when a human-readable message is sufficient.
Warning: Does not propagate kotlinx.coroutines.CancellationException — use outcomeOf in suspend contexts.