Passes control from a VLX error handler to the *error* function of the calling namespace
(vl-exit-with-error msg)
This function is used by VLX applications that run in their own namespace. When vl-exit-with-error executes, it calls the *error* function, the stack is unwound, and control returns to a command prompt.
The following code illustrates the use of vl-exit-with-error to pass a string to the *error* function of the calling namespace:
(defun *error* (msg)
... ; processing in VLX namespace/execution context
(vl-exit-with-error (strcat "My application bombed! " msg)))
See Also
-
The *error* and vl-exit-with-value functions. The
Handling Errors in an MDI Environment topic in the AutoLISP Developer's Guide.