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()

Get the cause of this XPathException.

void printStackTrace(PrintWriter s)

Print stack trace to specified PrintWriter.

void printStackTrace(PrintStream s)

Print stack trace to specified PrintStream.

void printStackTrace()

Print stack trace to System.err.

[Expand]
Inherited Methods
From class java.lang.Throwable
From class java.lang.Object

Public Constructors

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.

Parameters
message The detail message.
Throws
NullPointerException When message is null.

public XPathException (Throwable cause)

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 ()

Get the cause of this XPathException.

Returns
  • Cause of this XPathException.

public void printStackTrace (PrintWriter s)

Print stack trace to specified PrintWriter.

Parameters
s Print stack trace to this PrintWriter.

public void printStackTrace (PrintStream s)

Print stack trace to specified PrintStream.

Parameters
s Print stack trace to this PrintStream.

public void printStackTrace ()

Print stack trace to System.err.