1 25 package org.objectweb.easybeans.tests.common.exception; 26 27 28 35 public class CallbackOKException extends IllegalStateException { 36 37 40 private static final long serialVersionUID = 84316203048467415L; 41 44 private Exception e; 45 46 50 public CallbackOKException(final String msg){ 51 super(msg); 52 } 53 54 59 public CallbackOKException(final String msg, final Exception e){ 60 super(msg + "Wrapped exception:" + e.getClass().getName().toString() + ", " + e.toString()); 61 } 62 63 67 public Exception getWrapped(){ 68 return e; 69 } 70 } 71 | Popular Tags |