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

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
                      extended by org.inria.ns.reflex.xml.xpath.XPathFunctionException
All Implemented Interfaces:
Serializable, Localizable

public class XPathFunctionException
extends XPathException

An error that occurs when an XPath expression can't retrieve the implementation of a function or can't execute it.

Author:
Philippe Poulard
See Also:
Serialized Form

Constructor Summary
XPathFunctionException(String message, String expression)
          Constructs a new XPathFunctionException with the specified detail message.
XPathFunctionException(String message, Throwable cause, String expression)
          Constructs a new XPathFunctionException with the specified detail message and cause.
XPathFunctionException(Throwable cause)
          Constructs a new XPathFunctionException with the specified cause.
XPathFunctionException(Throwable cause, String expression)
          Constructs a new XPathFunctionException with the specified detail message and cause.
XPathFunctionException(XPathFunction function, String message)
          Constructs a new XPathFunctionException with the specified detail message.
XPathFunctionException(XPathFunction function, Throwable cause)
          Constructs a new XPathFunctionException with the specified 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

XPathFunctionException

public XPathFunctionException(XPathFunction function,
                              String message)
Constructs a new XPathFunctionException with the specified detail message.

Parameters:
function - The XPath function in fault.
message - The detail message.

XPathFunctionException

public XPathFunctionException(XPathFunction function,
                              Throwable cause)
Constructs a new XPathFunctionException with the specified cause.

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

XPathFunctionException

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

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

XPathFunctionException

public XPathFunctionException(String message,
                              Throwable cause,
                              String expression)
Constructs a new XPathFunctionException with the specified detail message and cause.

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.

XPathFunctionException

public XPathFunctionException(Throwable cause,
                              String expression)
Constructs a new XPathFunctionException 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.
expression - The XPath expression that cause the error.

XPathFunctionException

public XPathFunctionException(Throwable cause)
Constructs a new XPathFunctionException with the specified 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 XPathException
Returns:
The file where is located the error, if known.
See Also:
Throwable.getLocalizedMessage()