How Do I Provide a Default Handler for My Entire Application? (Magic xpa 4.x)
If you want to create a Handler that will work for your entire application:
-
Create the handler in the Main program.
-
Set the Scope to Global.
In this example we trap the Any Error event, and log the message using the database “err” functions. If the DB error was handled by a lower-level task, this handler will never be executed.