Returns a string from an error object
(vl-catch-all-error-message error-obj)
A string containing an error message.
Divide by zero using vl-catch-all-apply:
_$ (setq catchit (vl-catch-all-apply '/ '(50 0)))
#<%catch-all-apply-error%>
The vl-catch-all-apply function traps the error and returns an error object. Use vl-catch-all-error-message to see the error message contained in the error object:
_$ (vl-catch-all-error-message catchit)
"divide by zero"
See Also
-
The *error*, vl-catch-all-apply, and vl-catch-all-error-p functions. The
Error Handling in AutoLISP topic in the AutoLISP Developer's Guide.