Exception handling

J

Jon

Can someone point me to a best practices for exception handling in .Net 2?
We have a method that we like for ASP.Net apps on .Net 1.1, but are just
moving to 2.0 with winforms apps.

Is it still recommended to use the addHandler method in each form for
ApplicationThreadExceptions and then just handle everything else using
try/catch blocks and rethrow if the exception can't be handled?

Is it recommended to let all exceptions bubble up from base classes into the
application and handle them there?

Thank you
 
H

Herfried K. Wagner [MVP]

Jon said:
Can someone point me to a best practices for exception handling in .Net 2?
We have a method that we like for ASP.Net apps on .Net 1.1, but are just
moving to 2.0 with winforms apps

Some background information:

Best Practices for Handling Exceptions
<URL:http://msdn.microsoft.com/library/en-us/cpguide/html/cpconBestPracticesForHandlingExceptions.asp>

Exception Management Architecture Guide
<URL:http://msdn.microsoft.com/library/en-us/dnbda/html/exceptdotnet.asp>

Exception Handling Application Block
<URL:http://msdn.microsoft.com/library/en-us/dnpag2/html/ehab.asp>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top