1 4 7 package javax.xml.crypto.dsig; 8 9 import java.io.PrintStream ; 10 import java.io.PrintWriter ; 11 12 24 public class TransformException extends Exception { 25 26 private static final long serialVersionUID = 5082634801360427800L; 27 28 35 private Throwable cause; 36 37 41 public TransformException() { 42 super(); 43 } 44 45 51 public TransformException(String message) { 52 super(message); 53 } 54 55 66 public TransformException(String message, Throwable cause) { 67 super(message); 68 this.cause = cause; 69 } 70 71 81 public TransformException(Throwable cause) { 82 super(cause==null ? null : cause.toString()); 83 this.cause = cause; 84 } 85 86 95 public Throwable getCause() { 96 return cause; 97 } 98 99 103 public void printStackTrace() { 104 super.printStackTrace(); 105 if (cause != null) { 106 cause.printStackTrace(); 107 } 108 } 109 110 116 public void printStackTrace(PrintStream s) { 117 super.printStackTrace(s); 118 if (cause != null) { 119 cause.printStackTrace(s); 120 } 121 } 122 123 129 public void printStackTrace(PrintWriter s) { 130 super.printStackTrace(s); 131 if (cause != null) { 132 cause.printStackTrace(s); 133 } 134 } 135 } 136 | Popular Tags |