More on Exception Handling
When writing a .NET application one has to deal with expected and unexpected exceptions. In my current project we build a WindowsForms application. When an unhandled exception is caught by the global handler, it is logged and a generic exception dialog is displayed. The dialog is an extended version of this piece of good work: http://www.jasonbock.net/JB/ExceptionDialog.aspx) . We have decided that we want to show this dialog only in DEBUG mode. In the RELEASE version only a MessageBox will be displayed to the user, since he is probably not quite interested in stack traces and internal exceptions.
I just ran into a great presentation on strategies for handling errors. You could download it from http://www.codinghorror.com/blog/files/CodeCamp_UserFriendlyExceptionHandling.zip. Definitely worth taking a look!



1 Comments:
Thanks for your code, it helped me :)
By
Anonymous, at
01 October, 2006 14:40
Post a Comment
<< Home