Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Not exact match
Message
From
19/11/2003 20:29:39
 
 
To
19/11/2003 20:27:54
General information
Forum:
ASP.NET
Category:
Other
Title:
Miscellaneous
Thread ID:
00851689
Message ID:
00851706
Views:
8
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
Previous
Reply
Map
View

Click here to load this message in the networking platform