|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
nu.xom.xinclude.XIncludeException
XIncludeException
is the generic superclass
for all checked exceptions that may be thrown as a result
of a violation of XInclude's rules.
Constructor Summary | |
XIncludeException(java.lang.String message)
Constructs an XIncludeException with the specified
detail message. |
|
XIncludeException(java.lang.String message,
java.lang.String uri)
Creates a new XIncludeException with a detail
message, line and column numbers, and a URI of the document
that caused the exception. |
|
XIncludeException(java.lang.String message,
java.lang.Throwable cause)
Constructs an XIncludeException with the specified
detail message and initial cause. |
Method Summary | |
java.lang.Throwable |
getCause()
When an IOException ,
MalformedURLException , or other generic
exception is thrown while processing an XML document
for XIncludes, it is customarily replaced
by some form of XIncludeException . |
java.lang.String |
getURI()
Returns the URI of the document that caused this exception. |
java.lang.Throwable |
initCause(java.lang.Throwable cause)
When an IOException ,
MalformedURLException , or other generic exception
is thrown while processing an XML document
for XIncludes, it is customarily replaced
by some form of XIncludeException . |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public XIncludeException(java.lang.String message)
Constructs an XIncludeException
with the specified
detail message. The error message string message
can later be retrieved by the
method of class Throwable.getMessage()
java.lang.Throwable
.
message
- the detail messagepublic XIncludeException(java.lang.String message, java.lang.Throwable cause)
Constructs an XIncludeException
with the specified
detail message and initial cause. The error message string
message
can later be retrieved by the
method of class Throwable.getMessage()
java.lang.Throwable
.
message
- the detail messagecause
- the initial cause of the exceptionpublic XIncludeException(java.lang.String message, java.lang.String uri)
Creates a new XIncludeException
with a detail
message, line and column numbers, and a URI of the document
that caused the exception.
message
- indicates the specific problemuri
- the URI of the document that caused this exceptionMethod Detail |
public java.lang.String getURI()
Returns the URI of the document that caused this exception. If the URI is not known, null is returned.
public java.lang.Throwable getCause()
When an IOException
,
MalformedURLException
, or other generic
exception is thrown while processing an XML document
for XIncludes, it is customarily replaced
by some form of XIncludeException
.
This method allows you to retrieve the original exception.
It returns null if no such exception caused this
XIncludeException
.
public java.lang.Throwable initCause(java.lang.Throwable cause)
When an IOException
,
MalformedURLException
, or other generic exception
is thrown while processing an XML document
for XIncludes, it is customarily replaced
by some form of XIncludeException
.
This method allows you to store the original exception.
cause
- the root cause of this exception
XIncludeException
java.lang.IllegalArgumentException
- if the cause is this exception
(An exception cannot be its own cause.)
java.lang.IllegalStateException
- if this method is called twice
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |