Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Anything Wrong with Creating An ExceptionOccurred Event
Message
De
13/08/2009 18:58:02
Timothy Bryan
Sharpline Consultants
Conroe, Texas, États-Unis
 
Information générale
Forum:
ASP.NET
Catégorie:
Conception classe
Divers
Thread ID:
01417957
Message ID:
01418027
Vues:
37
>Anyone see anything wrong with create an event to raise when an exception occurs?
>It could be called from with a Catch statement.

That is exactly what I do when I create components or assemblies that have no UI. I raise an error event usually from within a catch but not always and the application subscribing to these can handle the event however it sees fit. I typically have EventArguments that include the reason, and maybe if it was fatal or something; just depends on the circumstances.
Tim
Timothy Bryan
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform