1 7 8 package java.lang.reflect; 9 10 24 public class InvocationTargetException extends Exception { 25 28 private static final long serialVersionUID = 4085088731926701167L; 29 30 38 private Throwable target; 39 40 44 protected InvocationTargetException() { 45 super((Throwable )null); } 47 48 53 public InvocationTargetException(Throwable target) { 54 super((Throwable )null); this.target = target; 56 } 57 58 65 public InvocationTargetException(Throwable target, String s) { 66 super(s, null); this.target = target; 68 } 69 70 79 public Throwable getTargetException() { 80 return target; 81 } 82 83 90 public Throwable getCause() { 91 return target; 92 } 93 } 94 | Popular Tags |