rethrow-restarts ( error restarts -- restart )
Factor documentation > Factor handbook > The language > Exception handling > Restartable errors
Prev:throw-restarts ( error restarts -- restart )
Next:throw-continue ( error -- )


Vocabulary
continuations

Inputs and outputs
erroran object
restartsa sequence of { string object } pairs
restartan object


Word description
Throws a restartable error using rethrow. Otherwise, this word is identical to throw-restarts.

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

Definition
USING: kernel ;

IN: continuations

: rethrow-restarts ( error restarts -- restart )
[ <condition> rethrow ] callcc1 2nip ;