throw ( error -- * )
Factor handbook » The language » Exception handling

Next:rethrow ( error -- * )


Vocabulary
kernel

Inputs
erroran object


Outputs
None

Word description
Reifies and saves the current continuation in the error-continuation global variable and throws an error. Execution does not continue at the point after the throw call. Rather, the innermost catch block is invoked, and execution continues at that point.

See also
rethrow, throw-restarts, rethrow-restarts, throw-continue

Definition

GENERIC: throw ( error -- * )


Methods