1 4 7 package javax.xml.crypto.dsig; 8 9 import java.io.PrintStream ; 10 import java.io.PrintWriter ; 11 12 21 public class XMLSignatureException extends Exception { 22 23 private static final long serialVersionUID = -3438102491013869995L; 24 25 32 private Throwable cause; 33 34 38 public XMLSignatureException() { 39 super(); 40 } 41 42 48 public XMLSignatureException(String message) { 49 super(message); 50 } 51 52 63 public XMLSignatureException(String message, Throwable cause) { 64 super(message); 65 this.cause = cause; 66 } 67 68 78 public XMLSignatureException(Throwable cause) { 79 super(cause==null ? null : cause.toString()); 80 this.cause = cause; 81 } 82 83 92 public Throwable getCause() { 93 return cause; 94 } 95 96 100 public void printStackTrace() { 101 super.printStackTrace(); 102 if (cause != null) { 103 cause.printStackTrace(); 104 } 105 } 106 107 113 public void printStackTrace(PrintStream s) { 114 super.printStackTrace(s); 115 if (cause != null) { 116 cause.printStackTrace(s); 117 } 118 } 119 120 126 public void printStackTrace(PrintWriter s) { 127 super.printStackTrace(s); 128 if (cause != null) { 129 cause.printStackTrace(s); 130 } 131 } 132 } 133 | Popular Tags |