1 4 7 package javax.xml.crypto; 8 9 import java.io.PrintStream ; 10 import java.io.PrintWriter ; 11 import javax.xml.crypto.dsig.Manifest; 12 import javax.xml.crypto.dsig.XMLSignature; 13 import javax.xml.crypto.dsig.XMLSignatureFactory; 14 import javax.xml.crypto.dsig.keyinfo.KeyInfo; 15 import javax.xml.crypto.dsig.keyinfo.KeyInfoFactory; 16 17 30 public class MarshalException extends Exception { 31 32 private static final long serialVersionUID = -863185580332643547L; 33 34 41 private Throwable cause; 42 43 47 public MarshalException() { 48 super(); 49 } 50 51 57 public MarshalException(String message) { 58 super(message); 59 } 60 61 72 public MarshalException(String message, Throwable cause) { 73 super(message); 74 this.cause = cause; 75 } 76 77 86 public MarshalException(Throwable cause) { 87 super(cause==null ? null : cause.toString()); 88 this.cause = cause; 89 } 90 91 100 public Throwable getCause() { 101 return cause; 102 } 103 104 108 public void printStackTrace() { 109 super.printStackTrace(); 110 } 112 113 119 public void printStackTrace(PrintStream s) { 120 super.printStackTrace(s); 121 } 123 124 130 public void printStackTrace(PrintWriter s) { 131 super.printStackTrace(s); 132 } 134 } 135 | Popular Tags |