Class XPathException

All Implemented Interfaces:
Serializable
Direct Known Subclasses:
XPathExpressionException, XPathFactoryConfigurationException

public class XPathException
extends Exception
XPathException represents a generic XPath exception.

Since:
1.5
Version:
$Revision: 446598 $, $Date: 2006-09-15 05:55:40 -0700 (Fri, 15 Sep 2006) $
Author:
Norman Walsh, Jeff Suttor
See Also:
Serialized Form
  • Constructor Details

    • 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 Details

    • getCause

      public Throwable getCause()
      Description copied from class: Throwable
      Returns the cause of this Throwable, or null if there is no cause.
      Overrides:
      getCause in class Throwable
    • printStackTrace

      public void printStackTrace​(PrintStream s)
      Description copied from class: Throwable
      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.
      Overrides:
      printStackTrace in class Throwable
    • printStackTrace

      public void printStackTrace()
      Description copied from class: Throwable
      Writes a printable representation of this Throwable's stack trace to the System.err stream.
      Overrides:
      printStackTrace in class Throwable
    • printStackTrace

      public void printStackTrace​(PrintWriter s)
      Description copied from class: Throwable
      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.
      Overrides:
      printStackTrace in class Throwable
      Parameters:
      s - the writer to write the stack trace on.