Method AutomationObject():onError() Foundation

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

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

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


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.


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.