About Error and Exception Handling

The following topics describe how ATEasy handles errors and exception handling.

 

Topic

Description

Overview of Error and Exception Handling

Describes non-recoverable compiler errors, recoverable and non-recoverable runtime errors, and error handling of run-time errors.

Sources of Error

Explains major causes of recoverable and non-recoverable errors.

Error Statement

Describes using the Error statement to generate a recoverable run-time error with a user-specified error code number.

Retry and Ignore Statements

Explains how to use the Retry statement and Ignore statement in error handling code, specifically for Try-Catch blocks and OnError events.

OnError

Describes the OnError event, a default method of handling run-time errors if no Try... Catch block surrounding the code has resolved the error.

Default Error Handler

Explains how the Default Error Handler dialog box handles any run-time errors that have not been handled by a Try-Catch block or by an OnError handler.

Try and Catch

Describes handling errors by using Try and Catch blocks.

Error Procedures

Describes how to use the GetErrorMsg procedure, GetErrorNum procedure, and GetErrorModule procedure in an OnError event when a recoverable run-time error occurs.

Exception Dialog

Describes the ATEasy Exception Dialog that is displayed when fatal non-recoverable exception occurred forcing to exit ATEasy

.