All Manuals > COM/Automation User Guide and Reference Manual > 4 Automation Reference Entries

com-dispatch-invoke-exception-error-info Function

Summary

Retrieves information stored in a com-dispatch-invoke-exception-error.

Package

com

Signature

com-dispatch-invoke-exception-error-info condition fields => field-values

Arguments
condition
fields
A list of keywords as specified below.
Values
field-values
A list.
Description

The function com-dispatch-invoke-exception-error-info retrieves information about the exception from condition. 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:

:code
The error code.
:source
The source of the error.
:description
The description of the error.
:help-file
The help file for the error.
:help-context
The help context for the error.
Examples
(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))))
See also

com-dispatch-invoke-exception-error


COM/Automation User Guide and Reference Manual - 01 Dec 2021 19:38:41