Package javax.xml.xpath
Class XPathException
java.lang.Object
java.lang.Throwable
java.lang.Exception
javax.xml.xpath.XPathException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
XPathExpressionException,XPathFactoryConfigurationException
public class XPathException extends Exception
XPathException represents a generic XPath exception.- Since:
- 1.5
- Version:
- $Revision: 446598 $, $Date: 2006-09-15 05:55:40 -0700 (Fri, 15 Sep 2006) $
- Author:
- Norman Walsh, Jeff Suttor
- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description XPathException(String message)Constructs a newXPathExceptionwith the specified detailmessage.XPathException(Throwable cause)Constructs a newXPathExceptionwith the specifiedcause. -
Method Summary
Modifier and Type Method Description ThrowablegetCause()Returns the cause of thisThrowable, ornullif there is no cause.voidprintStackTrace()Writes a printable representation of thisThrowable's stack trace to theSystem.errstream.voidprintStackTrace(PrintStream s)Writes a printable representation of thisThrowable's stack trace to the given print stream.voidprintStackTrace(PrintWriter s)Writes a printable representation of thisThrowable's stack trace to the specified print writer.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, setStackTrace, toString
-
Constructor Details
-
XPathException
Constructs a new
XPathExceptionwith the specified detailmessage.The
causeis not initialized.If
messageisnull, then aNullPointerExceptionis thrown.- Parameters:
message- The detail message.
-
XPathException
Constructs a new
XPathExceptionwith the specifiedcause.If
causeisnull, then aNullPointerExceptionis thrown.- Parameters:
cause- The cause.- Throws:
NullPointerException- ifcauseisnull.
-
-
Method Details
-
getCause
Description copied from class:ThrowableReturns the cause of thisThrowable, ornullif there is no cause. -
printStackTrace
Description copied from class:ThrowableWrites a printable representation of thisThrowable's stack trace to the given print stream. If theThrowablecontains acause, the method will be invoked recursively for the nestedThrowable.- Overrides:
printStackTracein classThrowable
-
printStackTrace
public void printStackTrace()Description copied from class:ThrowableWrites a printable representation of thisThrowable's stack trace to theSystem.errstream.- Overrides:
printStackTracein classThrowable
-
printStackTrace
Description copied from class:ThrowableWrites a printable representation of thisThrowable's stack trace to the specified print writer. If theThrowablecontains acause, the method will be invoked recursively for the nestedThrowable.- Overrides:
printStackTracein classThrowable- Parameters:
s- the writer to write the stack trace on.
-