Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Suppress exception
Message
De
08/01/2014 09:08:14
 
 
À
08/01/2014 08:37:57
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Versions des environnements
Environment:
C# 3.0
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01591488
Message ID:
01591493
Vues:
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.

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?
>>}
>>
>>
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform