public class javax.xml.crypto
URIReferenceException


Show All Login
Java SE 6
  
Extends: Throwable > Exception
Details
Indicates an exceptional condition thrown while dereferencing a URIReference.

A URIReferenceException can contain a cause: another throwable that caused this URIReferenceException to get thrown.
since1.6
See also dereference(URIReference, XMLCryptoContext), dereference(XMLCryptoContext)


Constructors
public URIReferenceException()
Constructs a new URIReferenceException with null as its detail message.
public URIReferenceException(String message) Details
Constructs a new URIReferenceException with the specified detail message.
messagethe detail message
public URIReferenceException(String message, Throwable cause) Details
Constructs a new URIReferenceException with the specified detail message and cause.

Note that the detail message associated with cause is not automatically incorporated in this exception's detail message.
messagethe detail message
causethe cause (A null value is permitted, and indicates that the cause is nonexistent or unknown.)

public URIReferenceException(String message, Throwable cause, URIReference uriReference) Details
Constructs a new URIReferenceException with the specified detail message, cause and URIReference.

Note that the detail message associated with cause is not automatically incorporated in this exception's detail message.
messagethe detail message
causethe cause (A null value is permitted, and indicates that the cause is nonexistent or unknown.)
uriReferencethe URIReference that was being dereferenced when the error was encountered
ThrowsNullPointerException: if uriReference is null

public URIReferenceException(Throwable cause) Details
Constructs a new URIReferenceException with the specified cause and a detail message of (cause==null ? null : cause.toString()) (which typically contains the class and detail message of cause).
causethe cause (A null value is permitted, and indicates that the cause is nonexistent or unknown.)

Methods
public void printStackTrace()
Prints this URIReferenceException, its backtrace and the cause's backtrace to the standard error stream.
public void printStackTrace(PrintStream s) Details
Prints this URIReferenceException, its backtrace and the cause's backtrace to the specified print stream.
sPrintStream to use for output
public void printStackTrace(PrintWriter s) Details
Prints this URIReferenceException, its backtrace and the cause's backtrace to the specified print writer.
sPrintWriter to use for output

Properties
public Throwable getCause() Details
Returns the cause of this URIReferenceException or null if the cause is nonexistent or unknown. (The cause is the throwable that caused this URIReferenceException to get thrown.)
returnthe cause of this URIReferenceException or null if the cause is nonexistent or unknown.
public URIReference getURIReference() Details
Returns the URIReference that was being dereferenced when the exception was thrown.
returnthe URIReference that was being dereferenced when the exception was thrown, or null if not specified