Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Practical examples of Try/Catch/Finally
Message
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00836428
Message ID:
00836434
Views:
23
>I am wondering about how practical is to use Try/Catch/Finally error handling.
>
>You cannot get Server.GetLastError() in Catch block, therefore, making an informative error message is difficult. If you don't have Try/Catch, the global error page (from global.asax) will show an error message anyway.
>
>Where do you find Try/Catch/Finally practical to implement where the error message is informative?

You pass the exception to the catch.
Catch (Exception e)
{
e.Message
}
Chris
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform