1 25 package org.objectweb.easybeans.tests.common.exception; 26 27 28 33 public class CatchedException extends IllegalStateException { 34 35 38 private static final long serialVersionUID = 982938367801627609L; 39 40 43 private Exception e; 44 45 49 public CatchedException(final String msg){ 50 super(msg); 51 } 52 53 58 public CatchedException(final String msg, final Exception e){ 59 super(msg + "Wrapped exception:" + e.getClass().getName().toString() + ", " + e.toString()); 60 } 61 62 66 public Exception getWrapped(){ 67 return e; 68 } 69 } 70 | Popular Tags |