Skip to content

Most visited

Recently visited

navigation
Added in API level 8

XPathException

public class XPathException
extends Exception

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


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.

Inherited methods

From class java.lang.Throwable
From class java.lang.Object

Public constructors

XPathException

Added in API level 8
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.

Parameters
message String: The detail message.

XPathException

Added in API level 8
XPathException (Throwable cause)

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

getCause

Added in API level 8
Throwable getCause ()

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

Returns
Throwable

printStackTrace

Added in API level 8
void printStackTrace (PrintWriter s)

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.

printStackTrace

Added in API level 8
void printStackTrace (PrintStream s)

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

printStackTrace

Added in API level 8
void printStackTrace ()

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

This site uses cookies to store your preferences for site-specific language and display options.

Hooray!

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.