> 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
[quoted text clipped - 3 lines]
> event handlers, we just log the exception.
> Any thoughts to better the design are welcome.
What do you mean with no unhandled exceptions? Do you have a
try{}catch(Exception) in every Eventhandler or is it simply you say that you
try to catch all Exception that are thrown by you or at least expected?
But you are right, nobody who raises an event would expect an exception,
unless you specify a specific event this way that "failing" of the event is
answered with an exception.

Signature
cody
[Freeware, Games and Humor]
www.deutronium.de.vu || www.deutronium.tk
Sandeep B - 12 May 2004 06:36 GMT
The exception handling for NON GUI components can be supported using the output parameters in the components ,
tr
catch(ex
outputparam =fals
This makes sure that the exception is not propagated from NON GUI to GUI components
Also it will be better as mentioned in the earlier reply , you use specific exception handlers