Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Not exact match
Message
De
19/11/2003 20:29:39
 
 
À
19/11/2003 20:27:54
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Titre:
Divers
Thread ID:
00851689
Message ID:
00851706
Vues:
7
No problem. =)

~~Bonnie

>>Well, that's just it ... you're not trapping for a specific string, you're trapping for a specific type of Exception. In my example, I trapped for a specific Exception, XmlException. If the Exception thrown was not an XmlException, then the second Catch will catch it, as it's just a generic Exception. Different things throw different exceptions. For instance, SqlClient stuff would throw SqlExceptions.
>
>As this specific piece of code will always return a string error, the If implementation works well.
>
>Thanks
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform