com.elharo.xml.xinclude
Class XPointerException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--com.elharo.xml.xinclude.XPointerException
All Implemented Interfaces:
java.io.Serializable

public class XPointerException
extends java.lang.Exception

XPointerException is the generic superclass for all checked exceptions that may be thrown as a result of a violation of XPointer syntax.

See Also:
Serialized Form

Constructor Summary
XPointerException()
          Constructs an XPointerException with null as its error detail message.
XPointerException(java.lang.String message)
          Constructs an XPointerException with the specified detail message.
 
Method Summary
 java.lang.Throwable getRootCause()
          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 XPointerException.
 void setRootCause(java.lang.Throwable nestedException)
          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 XPointerException.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

XPointerException

public XPointerException()
Constructs an XPointerException with null as its error detail message.


XPointerException

public XPointerException(java.lang.String message)
Constructs an XPointerException with the specified detail message. The error message string message can later be retrieved by the Throwable.getMessage() method of class java.lang.Throwable.

Parameters:
message - the detail message.
Method Detail

setRootCause

public void setRootCause(java.lang.Throwable nestedException)
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 XPointerException. This method allows you to store the original exception.

Parameters:
nestedException - the underlying exception which caused the XPointerException to be thrown

getRootCause

public java.lang.Throwable getRootCause()
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 XPointerException. This method allows you to retrieve the original exception. It returns null if no such exception caused this XPointerException.

Returns:
Throwable the underlying exception which caused the XPointerException to be thrown