I was told to propagate all exceptions. This sentence means active propagation such like :
public void doSomething() throws SomeException{
try{ doSomethingThatCanThrowException(); } catch (SomeException e){ e.addContextInformation(�more info�); throw e; //throw e, or wrap it � see next line. //throw new WrappingException(e, �more information�); } or passive propagation :
public void doSomething() throws SomeException {
try{ doSomethingThatCanThrowException(); } finally { //clean up � close open resources etc. } }
.Also what does propagating all exception mean ?
Cheers
try/catch/finally, just declaring athrowsclause for your method.