Variable Entry: ERROR
← Prev | ↑ Chapter | Next → | Index | Symbols
Variable Entry: ERROR
Name
*error*
Class
Special variable / error hook
Value Type
A function of one string argument, or nil.
Initial Value
Implementation-dependent.
Description
When defined, handles errors signaled to the AutoLISP environment.
Recovery and Handling
Typical uses include restoring system variables, cleanup, and filtering cancel messages.
Compatibility
Central across AutoCAD-compatible behavior; also documented by BricsCAD.
Availability
- AutoCAD 2026: documented (per Autodesk reference page).
- BricsCAD V26: presumed compatible (no contradicting page found).
- Status: AutoCAD documented; BricsCAD presumed-both pending Phase 4 verification.
Source Notes
- [*error* (AutoLISP)](https://help.autodesk.com/cloudhelp/2023/ENU/AutoCAD-AutoLISP-Reference/files/GUID-CF913180-17CC-43C7-B89F-3BC82FFBEFB9.htm)
- [About Using the error Function (AutoLISP)](https://help.autodesk.com/cloudhelp/2023/ENU/AutoCAD-AutoLISP/files/GUID-2AC47A3C-7E80-414D-9134-EABA0003193F.htm)
- [BricsCAD *error*](https://developer.bricsys.com/bricscad/help/en_US/V25/DevRef/source/error.htm)
- Status: documented.