News for hackers. Stuff that matters.
Re:Errors and Exceptions by einrealist on Friday August 21, 2015 @09:52AM (#10097422)
In layered code, if not recoverable by the current layer, you should always encapsulate checked exceptions thrown by a lower layer - translated into an exception of the current layer (maybe generalized). This simple rule is often declared as overhead. I don't get that. I like code to be precise. The only situations where this gets complicated are those, where the rule is violated. And I think, the rejection of checked exceptions is often based on experiences with bad API design.

Exception handling must be trained and educated. There is no silver bullet.

There are no comments on this comment yet.