Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Subclassing the error handler
Message
From
29/12/2004 09:53:53
 
 
To
28/12/2004 19:01:16
General information
Forum:
ASP.NET
Category:
Class design
Miscellaneous
Thread ID:
00972757
Message ID:
00972940
Views:
12
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform