News for hackers. Stuff that matters.
Re:Isaacs: try/catch is an anti-pattern by dolbz on Monday November 14, 2011 @11:02AM (#3234459)
> you don't need to neccessarily handle exceptions even if they are checked (in cases where it doesn't make sense that your code handles them). Add a 'throws' clause and let the calling code handle them.

The problem with this is it affects the signature of all methods in your call hierarchy up to the point where it's handled as you're forced to declare that you throw exceptions. A simple change in one class could quickly become a breaking change involving several classes just because an exception can now occur.

There are no comments on this comment yet.