Throw
fun Throw(error: Throwable, key: Any? = null, host: CatchThrowHost = LocalCatchThrowHost.current)(source)
Throw propagates the caught exception to a CatchThrowHost.
Parameters
error
The caught exception.
key
The key to identify the caught exception.
host
The CatchThrowHost to manage the caught exception. By default, it uses the LocalCatchThrowHost.