A daily dose of software engineering wisdom - inspiring, thought provoking, and sometimes just plain dangerous.

Tags: exception design

*Designing with exceptions*

Think what the throws clause should contain at the abstract contract level.

Exception translation can be helpfull, for example if in something that reads a database deep inside it could cause a MalformedURLException - the interface should not have to deal with that, hence exceptions can be wrapped in more meaningfull ones.

Last published: Thursday 22nd April 2010

<<Previous     Next>>

carriagereturn.org home