1 15 16 package javassist.reflect; 17 18 import java.lang.reflect.InvocationTargetException ; 19 import java.lang.IllegalAccessException ; 20 21 29 public class CannotInvokeException extends RuntimeException { 30 33 private Throwable err = null; 34 35 38 public CannotInvokeException(String reason) { 39 super(reason); 40 } 41 42 45 public CannotInvokeException(InvocationTargetException e) { 46 super("by " + e.getTargetException().toString()); 47 err = e.getTargetException(); 48 } 49 50 53 public CannotInvokeException(IllegalAccessException e) { 54 super("by " + e.toString()); 55 err = e; 56 } 57 58 61 public CannotInvokeException(ClassNotFoundException e) { 62 super("by " + e.toString()); 63 err = e; 64 } 65 } 66 | Popular Tags |