Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Suppress exception
Message
From
08/01/2014 08:37:57
 
 
To
08/01/2014 05:59:42
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Environment versions
Environment:
C# 3.0
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01591488
Message ID:
01591492
Views:
40
IMO, this is a bad idea. I've inherited code that was not working correctly and swallowed exceptions. It was almost impossible to find the error and fix it.

Perhaps there is another way to handle this. What are you trying to catch?



>Hi
>I would like to know, how could I suppress exception from higher level? For example
>
>
>try
>{
>   try
>   {
>      Throw new MyException();
>   }
>   catch { }
>}
>catch(MyException ex)
>{
>    // I DO NOT ONE THIS TO BE DETECTED. POSSIBLE?
>}
>
>
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform