Raise errors from ABL handlers for .NET events
- Last Updated: November 29, 2021
- 1 minute read
- OpenEdge
- Version 12.2
- Documentation
When a .NET event is published to which you have
subscribed ABL handlers (see Handle .NET events), 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.