Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Subclassing the error handler
Message
De
29/12/2004 09:53:53
 
 
À
28/12/2004 19:01:16
Information générale
Forum:
ASP.NET
Catégorie:
Conception classe
Divers
Thread ID:
00972757
Message ID:
00972940
Vues:
13
Michel,

You could just have the try/catch in the outside loop. When the inside loop fails, the outside loop will still catch it.

~~Bonnie


>I have a loop which is executing some processes. That loop contains another loop inside which also executes some processes. Both have the Try/Catch syntax. However, in both, I need to benefit of specific error messages that could occur. For now, I have repeated those error messages in the Catch syntax. The inside loop may contain additional messages. Would it be a way to avoid repeating the messages from the main loop in the Catch syntax of the inside loop by subclassing it?
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform