1 7 8 package java.lang.reflect; 9 10 41 public class UndeclaredThrowableException extends RuntimeException { 42 static final long serialVersionUID = 330127114055056639L; 43 44 48 private Throwable undeclaredThrowable; 49 50 57 public UndeclaredThrowableException(Throwable undeclaredThrowable) { 58 super((Throwable ) null); this.undeclaredThrowable = undeclaredThrowable; 60 } 61 62 70 public UndeclaredThrowableException(Throwable undeclaredThrowable, 71 String s) 72 { 73 super(s, null); this.undeclaredThrowable = undeclaredThrowable; 75 } 76 77 87 public Throwable getUndeclaredThrowable() { 88 return undeclaredThrowable; 89 } 90 91 99 public Throwable getCause() { 100 return undeclaredThrowable; 101 } 102 } 103 | Popular Tags |