ade_errgetlevel

AutoCAD Map 3D AutoLISP

Up a level
ade_errgetlevel
 
 

Gets the system error level.

(ade_errgetlevel)

Returns an error level (integer) or nil.

The system error level determines which error types are pushed to the stack.

Error Levels
0 All errors are pushed.
1 All errors except warnings and diagnostics are pushed (their types are listed below).
2 No errors are pushed.

The following error types are suppressed if the error level is 1.

Suppressed Error Types
01 kAdeWarning ADE (AutoCAD Data Extension) execution warning.
03 kAseWarning ASE (AutoCAD SQL Extension) execution warning.
05 kAcWarning AutoCAD execution warning.
07 kAsiWarning ASI (AutoCAD SQL Interface) execution warning.
09 kIRDWarning Extended object data (Xdata) warning.
16 kDiagMessage Diagnostic message returned.

Errors that are not pushed to the error stack are not displayed in the error dialog in the user interface, and they are not accessible by any error message function.

The error level managed by ade_errgetlevel and ade_errsetlevel has nothing to do with the error level managed by ade_prefgetval and ade_prefsetval (the work session preference, LogMessageLevel). The latter affects which types of message are written to the log file.

The error level is not saved when a session ends. When a session begins, the error level is always 0.