Global Exception Handlers
Exception handlers can be designed and armed as global exception handlers; that is, once armed, they stay active until they are disarmed or until the application terminates. Global exception handlers are useful for handling lock exceptions, connection exceptions, and as 'if all else fails' handlers for unexpected application and system exceptions such as String Too Long errors.
The following is an example of arming a global exception handler.
on ConnectionException do app.connectionExceptionHandler(exception) global;
To disarm a previously‑armed global exception handler, write:
on ConnectionException do null global;
Typically, if you need a global exception handler, it is convenient to arm it in the application's
As an example, you could always code your global exception handlers as methods of the