Try OpenEdge Now
skip to main content
GUI for .NET Programming
Accessing and Managing .NET Classes from ABL : Handling .NET exceptions : Unique scenarios when handling errors with .NET objects : Raising errors from ABL handlers for .NET events
 
Raising errors from ABL handlers for .NET events
When a .NET event is published to which you have subscribed ABL handlers (see Handling .NETevents), if an error condition is raised from an ABL handler for the .NET event, the AVM does not throw an Exception to the .NET Common Language Runtime (CLR), but displays a message to the default output device and processing continues as if no error has occurred. Thus, if any handlers for the event have not yet run when a handler raises an error, all remaining handlers continue to run.
Note: This is different from the AVM response to an error condition raised from a handler for an ABL class event. In this case, the AVM raises the error on the statement that invoked the ABL Publish( ) method on the event, and any handlers that have not yet run for the event when the error is raised do not run.