org.inria.ns.reflex.xml.xpath
Class XPathException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.inria.ns.reflex.structures.LocalizableException
              extended by org.inria.ns.reflex.xml.XMLException
                  extended by org.inria.ns.reflex.xml.xpath.XPathException
All Implemented Interfaces:
Serializable, Localizable
Direct Known Subclasses:
EmptyExpressionException, UnsupportedAxisException, XPathFunctionException, XPathSyntaxException, XPointerSyntaxException

public class XPathException
extends XMLException

An error that occurs when using XPath.

Author:
Philippe Poulard
See Also:
Serialized Form

Constructor Summary
XPathException(String message)
          Constructs a new XPathException with the specified detail message.
XPathException(String message, String expression)
          Constructs a new XPathException with the specified detail message.
XPathException(String message, Throwable cause, String expression)
          Constructs a new XPathException with the specified detail message.
XPathException(Throwable cause)
          Constructs a new XPathException with the specified cause.
XPathException(Throwable cause, String expression)
          Constructs a new XPathException with the specified cause.
XPathException(XFactoryConfigurationException cause)
          Constructs a new XPathException with the specified detail message and cause.
 
Method Summary
 String getLocalizedMessage()
          Return a formatted message.
 
Methods inherited from class org.inria.ns.reflex.structures.LocalizableException
getLocation, isLocalizable, setLocation, wasTraced
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

XPathException

public XPathException(String message)
Constructs a new XPathException with the specified detail message. The cause is not initialized.

Parameters:
message - The detail message.

XPathException

public XPathException(Throwable cause)
Constructs a new XPathException with the specified cause.

Parameters:
cause - The cause. A null value is permitted, and indicates that the cause is nonexistent or unknown.

XPathException

public XPathException(String message,
                      String expression)
Constructs a new XPathException with the specified detail message. The cause is not initialized.

Parameters:
message - The detail message.
expression - The XPath expression that cause the error.

XPathException

public XPathException(String message,
                      Throwable cause,
                      String expression)
Constructs a new XPathException with the specified detail message. The cause is not initialized.

Parameters:
message - The detail message.
cause - The cause. A null value is permitted, and indicates that the cause is nonexistent or unknown.
expression - The XPath expression that cause the error.

XPathException

public XPathException(Throwable cause,
                      String expression)
Constructs a new XPathException with the specified cause.

Parameters:
cause - The cause. A null value is permitted, and indicates that the cause is nonexistent or unknown.
expression - The XPath expression that cause the error.

XPathException

public XPathException(XFactoryConfigurationException cause)
Constructs a new XPathException with the specified detail message and cause.

Parameters:
cause - The cause. A null value is permitted, and indicates that the cause is nonexistent or unknown.
Method Detail

getLocalizedMessage

public String getLocalizedMessage()
Return a formatted message.

Overrides:
getLocalizedMessage in class LocalizableException
Returns:
The file where is located the error, if known.
See Also:
Throwable.getLocalizedMessage()