Method AsyncResult():signalError() Foundation

Signals an error condition with an error object.

Syntax
:signalError( <oError> ) --> self
Parameters
<oError>
The error object indicating the reason for failure.
Return

This method returns self.

Description

This method is called by the producer of the AsyncResult to indicate that the asynchronous operation has failed. It transitions the AsyncResult from the "waiting" state to the "error" state and stores the provided error object.

If codeblocks have been registered through :catch() or :finally(), they will be executed when this method is called.

This method has no effect if the AsyncResult is not in the "waiting" state.

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.