with-exception-handler[procedure] with-exception-handler handler thunk
SRFI-18, SRFI-21, SRFI-34: a fundamental exception handling mechanism.
From SRFI-34:
Returns the result(s) of invoking thunk. Handler must be a procedure that accepts one argument. It is installed as the current exception handler for the dynamic extent (as determined by dynamic-wind) of the invocation of thunk.
See the discussion in raise about the dynamic environment where handler is called.
See also current-exception-handler, guard.
|