Package org.exolab.adaptx.xpath
Class XPathException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.exolab.adaptx.xpath.XPathException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
ParseException
Indicates an error occured while evaluating an XPath expression.
- Version:
- $Revision: 3633 $ $Date: 2003-03-01 08:38:44 +0100 (Sat, 01 Mar 2003) $
- Author:
- Keith Visco
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionXPathException
(Exception exception) Creates a new XPathException with the given exception.XPathException
(String message) Creates a new XPathException with the given messageXPathException
(String message, Exception exception) Creates a new XPathException with the given message and exception. -
Method Summary
Modifier and TypeMethodDescriptionReturns the nested exception for this XPathException.void
Prints the stack trace for this exceptionvoid
printStackTrace
(PrintStream stream) Prints the stack trace for this exceptionvoid
printStackTrace
(PrintWriter writer) Prints the stack trace for this exceptionMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, setStackTrace, toString
-
Constructor Details
-
XPathException
Creates a new XPathException with the given message- Parameters:
message
- the error message for this XPathException
-
XPathException
Creates a new XPathException with the given message and exception.- Parameters:
message
- the error message for this XPathExceptionexception
- the Exception which caused the error.
-
XPathException
Creates a new XPathException with the given exception.- Parameters:
exception
- the Exception which caused the error.
-
-
Method Details
-
getException
Returns the nested exception for this XPathException.- Returns:
- the nested exception, or null if no nested exception exists.
-
printStackTrace
public void printStackTrace()Prints the stack trace for this exception- Overrides:
printStackTrace
in classThrowable
-
printStackTrace
Prints the stack trace for this exception- Overrides:
printStackTrace
in classThrowable
- Parameters:
stream
- the PrintStream to print the stack trace to.
-
printStackTrace
Prints the stack trace for this exception- Overrides:
printStackTrace
in classThrowable
- Parameters:
writer
- the PrintWriter to print the stack trace to.
-