chickadee » srfi-18 » with-exception-handler

with-exception-handler handler thunkprocedure

Returns the result(s) of calling thunk with no arguments. The handler, which must be a procedure, is installed as the current exception handler in the dynamic environment in effect during the call to thunk.

    (with-exception-handler
      list
      current-exception-handler)  ==>  ''the procedure'' list