raise
Evaluates error and delegates to shortCircuit, immediately short-circuiting the RaiseScope execution.
This is the primary way to raise an error from within a scope block.
Return
Nothing — always throws.
Parameters
error
Produces the error value to raise.
Throws
Raised Exception
nz.adjmunro.outcome.raise.RaisedException while the scope is active.
Raise Scope Leaked Exception
nz.adjmunro.outcome.raise.RaiseScopeLeakedException if close has already been called.