public class

XPathException

extends Exception
java.lang.Object
   ↳ java.lang.Throwable
     ↳ java.lang.Exception
       ↳ javax.xml.xpath.XPathException
Known Direct Subclasses
Known Indirect Subclasses

Class Overview

XPathException represents a generic XPath exception.

Summary

Public Constructors
XPathException(String message)

Constructs a new XPathException with the specified detail message.

XPathException(Throwable cause)

Constructs a new XPathException with the specified cause.

Public Methods
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(PrintWriter s)
Writes a printable representation of this Throwable's stack trace to the specified print writer.
void printStackTrace(PrintStream s)
Writes a printable representation of this Throwable's stack trace to the specified print stream.
[Expand]
Inherited Methods
From class java.lang.Throwable
From class java.lang.Object

Public Constructors

public XPathException (String message)

Since: API Level 8

Constructs a new XPathException with the specified detail message.

The cause is not initialized.

If message is null, then a NullPointerException is thrown.

Parameters
message The detail message.

public XPathException (Throwable cause)

Since: API Level 8

Constructs a new XPathException with the specified cause.

If cause is null, then a NullPointerException is thrown.

Parameters
cause The cause.
Throws
NullPointerException if cause is null.

Public Methods

public Throwable getCause ()

Since: API Level 8

Returns the cause of this Throwable, or null if there is no cause.

Returns
  • Throwable this Throwable's cause.

public void printStackTrace ()

Since: API Level 8

Writes a printable representation of this Throwable's stack trace to the System.err stream.

public void printStackTrace (PrintWriter s)

Since: API Level 8

Writes a printable representation of this 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.

Parameters
s the writer to write the stack trace on.

public void printStackTrace (PrintStream s)

Since: API Level 8

Writes a printable representation of this 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.

Parameters
s the stream to write the stack trace on.