Retrieves information stored in a com-dispatch-invoke-exception-error.
The function com-dispatch-invoke-exception-error-info
retrieves information about the exception from a com-dispatch-invoke-exception-error object. The keywords in fields are used to select which information is returned in field-values, which is a list of values corresponding to each keyword in fields.
The following keyword are supported in fields:
The error code.
The source of the error.
:description
The description of the error.
The help file for the error.
The help context for the error.
(handler-case
(com:invoke-dispatch-method counter "Run")
(com:com-dispatch-invoke-exception-error (condition)
(destructuring-bind (code description)
(com:com-dispatch-invoke-exception-error-info
condition
'(:code :description))
(format *error-output*
"Run failed with code ~D, description ~S."
code
description))))
LispWorks COM/Automation User Guide and Reference Manual - 23 Mar 2017