raised

abstract fun raised(error: Error): Nothing

Wraps raised as a Throwable and throws it, short-circuiting the RaiseScope execution.

Return

Nothing This function always throws.

Parameters

raised

The error to raise, which can be any non-null type.

Throws

RaiseCancellationException

When RaiseScope is active.

RaiseScopeLeakedException

If RaiseScope.complete has already been called.