Method AutomationObject():onError() Foundation

Default error handler for errors generated in the automation sub-system.

Syntax
:onError( <oError> ) --> xValue
Parameters
<oError>
<oError> contains an error object with error information.
Return

The method :onError() returns a value defined by the error handler.

Description

The method :onError() is the standard handler for errors raised by the automation sub-system. If a COM operation raises an error, :onError() is called with an error object in parameter <oError>. The error object contains information about the error generated. Please be referred to the function Error() for further information on error objects.

:onError() evaluates the error code block set using ErrorBlock(). The default error handler installed by the runtime system displays a runtime error for errors raised by COM operations.

Feedback

If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.