Navbar Content

You must login to post new threads
Topic: Exception handling the bad way
One of the things I've had to battle with quite a bit over the past three years both here at work and back at uni was getting people out of the habits of just catching and ignoring exceptions.

Rob Walling put up a good post today giving examples, and partially showing why ignoring exceptions is such a bad idea. It's summarised as this though:

Rule #1: If you can't add helpful information to an error message, don't catch the exception.
Rule #2: If you catch an exception, log it.

For the sanity of all programmers you'll ever have to work with, please adhere to these two simple pieces of advice :)
Userinfo for Zero email: ICQ: 11580892 AIM: akashra51 MSN: Website:

Registered user


Unregistered user

Display name*
Email address*
Web site

Please enter the text displayed below:

Your Reply (HTML is ON):

Valid XHTML 1.0!   Valid CSS!   Powered by Helix   [Valid RSS]   RSS feed for Zero

661 visits.   2645 news articles.   350 journal entries