Optional Exception Handler Parameters

When arming an exception handler, following the first parameter (which must always be the reserved word exception), you can specify any number of additional parameters that will be passed to the exception handler.

These parameters can be input or output, enabling you to pass information into the exception handler and return information from the exception handler. For global exception handlers, the parameter values are evaluated when the exception handler is armed. For local exception handlers, the parameter values are evaluated when the exception is raised.

Optional exception handler parameters do more than just keeping track of context. For example, local exception handlers can have a boolean parameter exceptionOccurred, which the handler can set to true. If the handler returns Ex_Resume_Next, the JADE method that armed the handler can test the value of exceptionOccurred, to determine if there was an error.

For more details and examples of contents of the parameter expressions passed to the global and local exception handler methods, see "Creating an Exception Handler" in "Chapter 3 – Exceptions", of the JADE Developer's Reference.