1 7 8 package java.security; 9 10 32 public class PrivilegedActionException extends Exception { 33 private static final long serialVersionUID = 4724086851538908602L; 35 36 39 private Exception exception; 40 41 47 public PrivilegedActionException(Exception exception) { 48 super((Throwable )null); this.exception = exception; 50 } 51 52 67 public Exception getException() { 68 return exception; 69 } 70 71 79 public Throwable getCause() { 80 return exception; 81 } 82 83 public String toString() { 84 String s = getClass().getName(); 85 return (exception != null) ? (s + ": " + exception.toString()) : s; 86 } 87 } 88 | Popular Tags |