ONERR Language Extension

error.h

Begins the error handler in a TRY...ONERR...ENDTRY block.

The macro ONERR ends the protected block and begins the error handler (see TRY for more info). The variable errCode is automatically created in the error handler, and it contains the error number to allow the program to check what caused the error. This variable is destroyed after the ENDTRY statement.

Note: The macro ONERR uses the ER_success function to end the protected block.


Uses: ER_success