exception handling in event handlers
From: Sankar Nemani (snemani_at_nospamlumedx.com)
Date: 04/22/04
- Next message: Ahmed AbouTaleb: "RE: Font Class vs Logical Fonts (windows GDI)"
- Previous message: Fabian Schmied: "Re: Modifying a type at runtime (cross post)"
- Next in thread: cody: "Re: exception handling in event handlers"
- Reply: cody: "Re: exception handling in event handlers"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 22 Apr 2004 07:16:16 -0700
Hi
In our organization, we made a decision to not have any unhandled
exceptions inside event handler methods. If we didn't do this, one event
handler's unhandled exceptions will stop other event handlers from getting
called. We use the same approach for both UI and non-UI eventhandlers. In UI
eventhandlers we let the user know by popping up a msgbox while in non-UI
event handlers, we just log the exception.
Any thoughts to better the design are welcome.
Sankar Nemani
- Next message: Ahmed AbouTaleb: "RE: Font Class vs Logical Fonts (windows GDI)"
- Previous message: Fabian Schmied: "Re: Modifying a type at runtime (cross post)"
- Next in thread: cody: "Re: exception handling in event handlers"
- Reply: cody: "Re: exception handling in event handlers"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|