APIdia Launch Partner
Top Description Fields Constructors Methods
javax.xml.crypto

public Class URIReferenceException

extends Exception
Class Inheritance
Imports
java.io.PrintStream, .PrintWriter, javax.xml.crypto.dsig.keyinfo.RetrievalMethod

Indicates an exceptional condition thrown while dereferencing a URIReference.

A URIReferenceException can contain a cause: another throwable that caused this URIReferenceException to get thrown.

Authors
Sean Mullan, JSR 105 Expert Group
Since
1.6
See Also
URIDereferencer#dereference(URIReference, XMLCryptoContext), RetrievalMethod#dereference(XMLCryptoContext)

Field Summary

Modifier and TypeField and Description
private Throwable
cause

Hides java.lang.Throwable.cause.

The throwable that caused this exception to get thrown, or null if this exception was not caused by another throwable or if the causative throwable is unknown.
private static final long
private URIReference

Constructor Summary

AccessConstructor and Description
public
URIReferenceException()

Constructs a new URIReferenceException with null as its detail message.

public
URIReferenceException(String
the detail message
message
)

Constructs a new URIReferenceException with the specified detail message.

public
URIReferenceException(String
the detail message
message
,
Throwable
the cause (A null value is permitted, and indicates that the cause is nonexistent or unknown.)
cause
)

Constructs a new URIReferenceException with the specified detail message and cause.

public
URIReferenceException(String
the detail message
message
,
Throwable
the cause (A null value is permitted, and indicates that the cause is nonexistent or unknown.)
cause
,
URIReference
the URIReference that was being dereferenced when the error was encountered
uriReference
)

Constructs a new URIReferenceException with the specified detail message, cause and URIReference.

public
URIReferenceException(Throwable
the cause (A null value is permitted, and indicates that the cause is nonexistent or unknown.)
cause
)

Constructs a new URIReferenceException with the specified cause and a detail message of (cause==null ?

Method Summary

Modifier and TypeMethod and Description
public Throwable

Returns:

the cause of this URIReferenceException or null if the cause is nonexistent or unknown.
getCause
()

Overrides java.lang.Throwable.getCause.

Returns the cause of this URIReferenceException or null if the cause is nonexistent or unknown.

public URIReference

Returns:

the URIReference that was being dereferenced when the exception was thrown, or null if not specified
getURIReference
()

Returns the URIReference that was being dereferenced when the exception was thrown.

public void
printStackTrace()

Overrides java.lang.Throwable.printStackTrace.

Prints this URIReferenceException, its backtrace and the cause's backtrace to the standard error stream.

public void
printStackTrace(PrintStream
PrintStream to use for output
s
)

Overrides java.lang.Throwable.printStackTrace.

Prints this URIReferenceException, its backtrace and the cause's backtrace to the specified print stream.

public void
printStackTrace(PrintWriter
PrintWriter to use for output
s
)

Overrides java.lang.Throwable.printStackTrace.

Prints this URIReferenceException, its backtrace and the cause's backtrace to the specified print writer.

Field Detail

causeback to summary
private Throwable cause

Hides java.lang.Throwable.cause.

The throwable that caused this exception to get thrown, or null if this exception was not caused by another throwable or if the causative throwable is unknown.

serialVersionUIDback to summary
private static final long serialVersionUID

Hides java.lang.Exception.serialVersionUID.

uriReferenceback to summary
private URIReference uriReference
Annotations
@SuppressWarnings:serial

Constructor Detail

URIReferenceExceptionback to summary
public URIReferenceException()

Constructs a new URIReferenceException with null as its detail message.

URIReferenceExceptionback to summary
public URIReferenceException(String message)

Constructs a new URIReferenceException with the specified detail message.

Parameters
message:String

the detail message

URIReferenceExceptionback to summary
public URIReferenceException(String message, Throwable cause)

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.

Parameters
message:String

the detail message

cause:Throwable

the cause (A null value is permitted, and indicates that the cause is nonexistent or unknown.)

URIReferenceExceptionback to summary
public URIReferenceException(String message, Throwable cause, URIReference uriReference)

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.

Parameters
message:String

the detail message

cause:Throwable

the cause (A null value is permitted, and indicates that the cause is nonexistent or unknown.)

uriReference:URIReference

the URIReference that was being dereferenced when the error was encountered

Exceptions
NullPointerException:
if uriReference is null
URIReferenceExceptionback to summary
public URIReferenceException(Throwable cause)

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).

Parameters
cause:Throwable

the cause (A null value is permitted, and indicates that the cause is nonexistent or unknown.)

Method Detail

getCauseback to summary
public Throwable getCause()

Overrides java.lang.Throwable.getCause.

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.)

Returns:Throwable

the cause of this URIReferenceException or null if the cause is nonexistent or unknown.

getURIReferenceback to summary
public URIReference getURIReference()

Returns the URIReference that was being dereferenced when the exception was thrown.

Returns:URIReference

the URIReference that was being dereferenced when the exception was thrown, or null if not specified

printStackTraceback to summary
public void printStackTrace()

Overrides java.lang.Throwable.printStackTrace.

Prints this URIReferenceException, its backtrace and the cause's backtrace to the standard error stream.

printStackTraceback to summary
public void printStackTrace(PrintStream s)

Overrides java.lang.Throwable.printStackTrace.

Prints this URIReferenceException, its backtrace and the cause's backtrace to the specified print stream.

Parameters
s:PrintStream

PrintStream to use for output

printStackTraceback to summary
public void printStackTrace(PrintWriter s)

Overrides java.lang.Throwable.printStackTrace.

Prints this URIReferenceException, its backtrace and the cause's backtrace to the specified print writer.

Parameters
s:PrintWriter

PrintWriter to use for output