About Handling Errors in a MDI Environment (Visual LISP IDE)

Each document namespace is provided with its own *error* function.

Note: The Visual LISP IDE is available on Windows only.

The default *error* function is defined as follows:

(defun *error* (msg)
           (princ "error: ")
           (princ msg)
           (princ)
)

A VLX application running within a document namespace shares the default *error* function. Each application should redefine the current in memory *error* function or use vl-exit-with-error function to handle an error and return the environment to its previous state prior to a function with in the application being executed.