outcome

inline fun <Ok : Any> outcome(block: RaiseScope<String>.() -> Ok): Outcome<Ok, String>

An alias for outcomeOf that uses a String as the Error type.

Useful for simple cases, where you fail to provide a specific error type, and just want to use any message string or Throwable.message.

See also