1 4 7 package javax.xml.crypto; 8 9 import java.io.PrintStream ; 10 import java.io.PrintWriter ; 11 12 22 public class KeySelectorException extends Exception { 23 24 private static final long serialVersionUID = -7480033639322531109L; 25 26 33 private Throwable cause; 34 35 39 public KeySelectorException() { 40 super(); 41 } 42 43 49 public KeySelectorException(String message) { 50 super(message); 51 } 52 53 64 public KeySelectorException(String message, Throwable cause) { 65 super(message); 66 this.cause = cause; 67 } 68 69 79 public KeySelectorException(Throwable cause) { 80 super(cause==null ? null : cause.toString()); 81 this.cause = cause; 82 } 83 84 93 public Throwable getCause() { 94 return cause; 95 } 96 97 101 public void printStackTrace() { 102 super.printStackTrace(); 103 } 105 106 112 public void printStackTrace(PrintStream s) { 113 super.printStackTrace(s); 114 } 116 117 123 public void printStackTrace(PrintWriter s) { 124 super.printStackTrace(s); 125 } 127 } 128 | Popular Tags |