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 specified 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, toString
public 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()
Throwable
Throwable
, or null
if there is
no cause.public void printStackTrace(PrintStream s)
Throwable
Throwable
's stack trace
to the specified print stream. If the Throwable
contains a
cause
, the method will be invoked recursively for
the nested Throwable
.printStackTrace
in class Throwable
s
- the stream to write the stack trace on.public void printStackTrace()
Throwable
Throwable
's stack trace
to the System.err
stream.printStackTrace
in class Throwable
public void printStackTrace(PrintWriter s)
Throwable
Throwable
'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 Throwable
s
- the writer to write the stack trace on.