Handbook
Glossary
rethrow-restarts ( error restarts -- restart )
Factor handbook
»
The language
»
Exception handling
»
Restartable errors
Prev:
throw-restarts ( error restarts -- restart )
Next:
throw-continue ( error -- )
Vocabulary
continuations
Inputs
error
an
object
restarts
a
sequence
of
{ string object }
pairs
Outputs
restart
an
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
;