[Progress Communities] [Progress OpenEdge ABL] Forum Post: RE: DOH Error Handling

Status
Not open for further replies.
P

Peter Judge

Guest
There's an OperationError event fired, that's intended for this kind of stuff. The DOH events are static events, so you can subscribe once in a session and have everything flow through a single handler(s). There's an example event handler at github.com/.../DOHEventHandler.cls , which doesn't contain the OperationError event but should be easy enough to follow. I would add the 'run' of this to your session startup.p. You can check the HandlerErrorEventArgs for the error raised: in 11.7.5+, use the OperationError property. Prior to that, the Error property has the previously-thrown error. (This new property was added because we needed a way to distinguish between the error being processed - the "data" for the event handler - and any errors that might be raised in the event handler).

Continue reading...
 
Status
Not open for further replies.
Top