vl-exit-with-error

AutoCad AutoLISP Functions

 
vl-exit-with-error
 
 
 

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.

Arguments

msg

A string.

Return Values

None.

Examples

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