:full-safetyGBBopen Toolsallow-redefinition*disable-with-error-handling*GoTo Top

*disable-with-error-handling*   [Variable]

Purpose
Controls whether with-error-handling is in effect.

Package   :gbbopen-tools

Module   :gbbopen-tools

Value type   A generalized boolean

Initial value   nil

Description
Setting *disable-with-error-handling* to true causes with-error-handling to evaluate its forms without any error handling in place. Any handler-form or error-form in the with-error-handling is ignored.

Setting *disable-with-error-handling* to true is very handy for debugging an unexpected error in a with-error-handling form.

See also
    with-error-handling

Example
Use *disable-with-error-handling* to debug a handled form:

  > (with-error-handling (/ 10 0) (printv (error-message)) nil)
  ;;  (error-message) => "Attempt to divide 10 by zero."
  nil 
  > (setf *disable-with-error-handling* 't)
  t
  > (with-error-handling (/ 10 0) (printv (error-message)) nil)
  Error: Attempt to divide 10 by zero.
  >>


The GBBopen Project


:full-safetyGBBopen Toolsallow-redefinition*disable-with-error-handling*GoTo Top