1 4 7 package javax.xml.crypto; 8 9 import java.io.PrintStream ; 10 import java.io.PrintWriter ; 11 import javax.xml.crypto.dsig.keyinfo.RetrievalMethod; 12 13 26 public class URIReferenceException extends Exception { 27 28 private static final long serialVersionUID = 7173469703932561419L; 29 30 37 private Throwable cause; 38 39 private URIReference uriReference; 40 41 45 public URIReferenceException() { 46 super(); 47 } 48 49 55 public URIReferenceException(String message) { 56 super(message); 57 } 58 59 70 public URIReferenceException(String message, Throwable cause) { 71 super(message); 72 this.cause = cause; 73 } 74 75 90 public URIReferenceException(String message, Throwable cause, 91 URIReference uriReference) { 92 this(message, cause); 93 if (uriReference == null) { 94 throw new NullPointerException ("uriReference cannot be null"); 95 } 96 this.uriReference = uriReference; 97 } 98 99 108 public URIReferenceException(Throwable cause) { 109 super(cause==null ? null : cause.toString()); 110 this.cause = cause; 111 } 112 113 120 public URIReference getURIReference() { 121 return uriReference; 122 } 123 124 133 public Throwable getCause() { 134 return cause; 135 } 136 137 141 public void printStackTrace() { 142 super.printStackTrace(); 143 } 145 146 152 public void printStackTrace(PrintStream s) { 153 super.printStackTrace(s); 154 } 156 157 163 public void printStackTrace(PrintWriter s) { 164 super.printStackTrace(s); 165 } 167 } 168 | Popular Tags |