Restartable errors
Factor handbook » The language » Exception handling

Prev:ERROR:
Next:The debugger


Support for restartable errors is built on top of the basic error handling facility. The following words signals recoverable errors:
throw-restarts ( error restarts -- restart )

rethrow-restarts ( error restarts -- restart )


A utility word using the above:
throw-continue ( error -- )


The list of restarts from the most recently-thrown error is stored in a global variable:
restarts


To invoke restarts, use The debugger.