Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Verification on getting application pool
Message
De
09/12/2013 11:37:34
 
 
À
09/12/2013 10:22:47
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:
01589563
Vues:
33
>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.

Thanks
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform