Android APIs
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(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 given print stream.
void printStackTrace()
Writes a printable representation of this Throwable's stack trace to the System.err stream.
[Expand]
Inherited Methods
From class java.lang.Throwable
From class java.lang.Object

Public Constructors

public XPathException (String message)

Added in 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 String: The detail message.

public XPathException (Throwable cause)

Added in API level 8

Constructs a new XPathException with the specified cause.

If cause is null, then a NullPointerException is thrown.

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

Public Methods

public Throwable getCause ()

Added in API level 8

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

Returns
Throwable

public void printStackTrace (PrintWriter s)

Added in 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 PrintWriter: the writer to write the stack trace on.

public void printStackTrace (PrintStream s)

Added in API level 8

Writes a printable representation of this Throwable's stack trace to the given print stream. If the Throwable contains a cause, the method will be invoked recursively for the nested Throwable.

Parameters
s PrintStream

public void printStackTrace ()

Added in API level 8

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