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 31 public class NoSuchMechanismException extends RuntimeException { 32 33 private static final long serialVersionUID = 4189669069570660166L; 34 35 42 private Throwable cause; 43 44 48 public NoSuchMechanismException() { 49 super(); 50 } 51 52 58 public NoSuchMechanismException(String message) { 59 super(message); 60 } 61 62 73 public NoSuchMechanismException(String message, Throwable cause) { 74 super(message); 75 this.cause = cause; 76 } 77 78 87 public NoSuchMechanismException(Throwable cause) { 88 super(cause==null ? null : cause.toString()); 89 this.cause = cause; 90 } 91 92 101 public Throwable getCause() { 102 return cause; 103 } 104 105 109 public void printStackTrace() { 110 super.printStackTrace(); 111 } 113 114 120 public void printStackTrace(PrintStream s) { 121 super.printStackTrace(s); 122 } 124 125 131 public void printStackTrace(PrintWriter s) { 132 super.printStackTrace(s); 133 } 135 } 136 | Popular Tags |