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

Click here to load this message in the networking platform