Please note that the contents of this offline web site may be out of date. To access the most recent documentation visit the online version .
Note that links that point to online resources are green in color and will open in a new window.
We would love it if you could give us feedback about this material by filling this form (You have to be online to fill it)
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 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 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.

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 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 .

public void printStackTrace ()

Added in API level 8

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