ERRNO (System Variable)

Displays the number of the appropriate error code when an AutoLISP function call causes an error that the product detects.

(Read-only)
Type:Integer
Saved in:Not-saved
Initial value:0

AutoLISP applications can inspect the current value of ERRNO with (getvar "errno").

The ERRNO system variable is not always cleared to zero. Unless it is inspected immediately after an AutoLISP function has reported an error, the error that its value indicates may be misleading. This variable is always cleared when starting or opening a drawing.