public class javax.xml.xpath
XPathException


Hide details Login
Java SE 6
  
Extends: Throwable > Exception
Extended by: XPathExpressionException, XPathFactoryConfigurationException

XPathException represents a generic XPath exception.

version$Revision: 1.2 $, $Date: 2005/06/10 03:50:44 $
since1.5

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.

messageThe detail message.
ThrowsNullPointerException: 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.

causeThe cause.
ThrowsNullPointerException: if cause is null.

Methods
public void printStackTrace(PrintStream s)

Print stack trace to specified PrintStream.

sPrint stack trace to this PrintStream.
public void printStackTrace()

Print stack trace to System.err.

public void printStackTrace(PrintWriter s)

Print stack trace to specified PrintWriter.

sPrint stack trace to this PrintWriter.

Properties
public Throwable getCause()

Get the cause of this XPathException.

returnCause of this XPathException.