Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Suppress exception
Message
From
08/01/2014 08:16:22
 
 
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:
01591490
Views:
48
>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?
>}
>
>
What do you mean by 'to be detected'. As your code stands since your inner catch does not rethrow the exception it will be swallowed at that point- the outer catch will never be hit.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform