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

NextPrevUpTopContentsIndex

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

A com-dispatch-invoke-exception-error.

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 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:

:code

The error code.

:source

The source of the error.

:descriptionThe description of the error.

:help-file

The help file for the error.

:help-context

The help context for the error.

Example
(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


LispWorks COM/Automation User Guide and Reference Manual - 14 Feb 2015

NextPrevUpTopContentsIndex