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: Friday 25th November 2011
<<Previous Next>>