The Error statement generates a recoverable run-time error with a user-specified error code number.
The syntax of the Error statement is:
Error [error number]
The Error statement can be used to generate specific ATEasy errors for error conditions that are based on criteria you decide, as opposed to errors that occur in your code.
For example, in your Driver, you may be interfacing with a PC board. You interface with or program the PC board using a DLL. You call a function in your Driver from the DLL and the DLL returns an error, such as Status, using a value of 1. You can handle that DLL error in your ATEasy driver by generating it as an ATEasy error statement with an error code that notifies the user that the DLL error occurred, and/or handling the error via an OnError procedure.