Class Error() Foundation
Class function of the Error Class.
The class object generates Error objects using its class method :new().
Error objects are simple objects that contain instance variables and no methods. When a runtime error occurs, an Error object is created and information about the nature of the error is assigned to its instance variables. After the error object is created, it is passed as an argument to the error handler code block most recently defined using the function ErrorBlock(). This code block in turn may pass the error object to an error handling function. The error handling function can then query the instance variables of the error object in order to take appropriate action.
Using the BREAK statement or the Break() function, Error objects can also be passed to the RECOVER statement of a BEGIN SEQUENCE ... END SEQUENCE construct. In the RECOVER section, the error object can be queried for proper local error handling.
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.