zero.racetime.com.au/
zero.racetime.com.au header
 
Navbar Content

Zero
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.
...[source]


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: tim@racetime.com.au ICQ: 11580892 AIM: akashra51 MSN: raven@challenge-au.com Website: http://zero.racetime.com.au/

Registered user

Username
Password

Unregistered user

Display name*
Email address*
Web site

Please enter the text displayed below:

Subject:
Your Reply (HTML is ON):

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

68039 visits.   2645 news articles.   350 journal entries