public class XPathException extends Exception
XPathException represents a generic XPath exception.| Constructor and Description |
|---|
XPathException(String message)
Constructs a new
XPathException with the specified detail message. |
XPathException(Throwable cause)
Constructs a new
XPathException with the specified cause. |
| Modifier and Type | Method and Description |
|---|---|
Throwable |
getCause()
Returns the cause of this
Throwable, or null if there is
no cause. |
void |
printStackTrace()
Writes a printable representation of this
Throwable's stack trace
to the System.err stream. |
void |
printStackTrace(PrintStream s)
Writes a printable representation of this
Throwable's stack trace
to the given print stream. |
void |
printStackTrace(PrintWriter s)
Writes a printable representation of this
Throwable's stack trace
to the specified print writer. |
addSuppressed, fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, setStackTrace, toStringpublic XPathException(String message)
Constructs a new XPathException with the specified detail message.
The cause is not initialized.
If message is null, then a NullPointerException is thrown.
message - The detail message.public XPathException(Throwable cause)
Constructs a new XPathException with the specified cause.
If cause is null, then a NullPointerException is thrown.
cause - The cause.NullPointerException - if cause is null.public Throwable getCause()
ThrowableThrowable, or null if there is
no cause.public void printStackTrace(PrintStream s)
ThrowableThrowable's stack trace
to the given print stream. If the Throwable contains a
cause, the method will be invoked recursively for
the nested Throwable.printStackTrace in class Throwablepublic void printStackTrace()
ThrowableThrowable's stack trace
to the System.err stream.printStackTrace in class Throwablepublic void printStackTrace(PrintWriter s)
ThrowableThrowable's stack trace
to the specified print writer. If the Throwable contains a
cause, the method will be invoked recursively for the
nested Throwable.printStackTrace in class Throwables - the writer to write the stack trace on.