javax.xml.xpath

Class XPathException

public class XPathException extends Exception

XPathException represents a generic XPath exception.

Since: 1.5

Version: $Revision: 226234 $, $Date: 2005-06-14 15:19:27 -0400 (Tue, 14 Jun 2005) $

Author: Norman Walsh Jeff Suttor

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

XPathException(Throwable cause)

Constructs a new XPathException with the specified cause.

If cause is null, then a NullPointerException is thrown.

Method Summary
ThrowablegetCause()
voidprintStackTrace(PrintStream s)
voidprintStackTrace()
voidprintStackTrace(PrintWriter s)

Constructor Detail

XPathException

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.

XPathException

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.

Method Detail

getCause

public Throwable getCause()

printStackTrace

public void printStackTrace(PrintStream s)

printStackTrace

public void printStackTrace()

printStackTrace

public void printStackTrace(PrintWriter s)