Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Suppress exception
Message
From
08/01/2014 09:08:14
 
 
To
08/01/2014 08:37:57
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:
01591493
Views:
38
>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.

In general I'd agree but there are exceptions (no pun intended) such as catching a specific, recoverable exception ?

>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?
>>}
>>
>>
Previous
Reply
Map
View

Click here to load this message in the networking platform