Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Verification on getting application pool
Message
De
09/12/2013 10:22:47
 
 
À
09/12/2013 09:24:48
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
Environment:
VB 9.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01589383
Message ID:
01589558
Vues:
28
>>But if those lines throw a different, unexpected error you will never know......
>
>What would you see as an adjustment to answer this specific situation?

At the very least throw on any exception except the expected one If, for example, you are expecting a DirectoryNotFound exception:
Try
Catch loError As DirectoryNotFoundException
  ' Ignore this error
End Try
'Other exceptions will be caught by higher level handler
If there's some condition you can check in the Catch to further verify that the exception is the expected one then check that and if it's not as expected then throw again. Also if you can narrow down the line that throws the exception then only put that in the Try block.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform