How convince other developers not to ignore Exceptions?
Posted
by Mnementh
on Stack Overflow
See other posts from Stack Overflow
or by Mnementh
Published on 2010-03-16T12:46:39Z
Indexed on
2010/03/16
12:56 UTC
Read the original article
Hit count: 373
Recently I encountered a bug in an application I took over from another developer. I debugged for the reason and over an hour later I realized, that the problem wasn't the code producing the exception, but some code executed before this returning wrong data. If I dived into this, I encountered the following:
try {
...
} catch (XYException e){}
If the Exception would have been propagated (a change I did), I would have found the reason for the bugs in a few minutes, as the stacktrace had pointed me to the problem. So how can I convince other developers to never catch and ignore exceptions in this way?
© Stack Overflow or respective owner