vl-catch-all-error-message
 
 
 

Returns a string from an error object

(vl-catch-all-error-message error-obj)

Arguments

error-obj

An error object returned by vl-catch-all-apply.

Return Values

A string containing an error message.

Examples

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