SwallowingExceptions

May 14, 2010
One thing worse than LousyErrorMessages is no error message at all.

There are exceptions (har) to the rule. My friend David Nunn sent me this anecdote:
I was talking in class at NASA about the misery of the following:
try {
.....
} catch (Exception ex) {
// this should never happen
}

and asked if anyone had written that.

One guy said “I did, but I put an exit(-1) in because it meant that radiation had scrambled the processor.”

tags: ComputersAndTechnology