org.exolab.adaptx.xpath
Class XPathException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.exolab.adaptx.xpath.XPathException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
ParseException

public class XPathException
extends java.lang.Exception

Indicates an error occured while evaluating an XPath expression.

Version:
$Revision: 3633 $ $Date: 2003-03-01 02:38:44 -0500 (Sat, 01 Mar 2003) $
Author:
Keith Visco
See Also:
Serialized Form

Constructor Summary
XPathException(java.lang.Exception exception)
          Creates a new XPathException with the given exception.
XPathException(java.lang.String message)
          Creates a new XPathException with the given message
XPathException(java.lang.String message, java.lang.Exception exception)
          Creates a new XPathException with the given message and exception.
 
Method Summary
 java.lang.Exception getException()
          Returns the nested exception for this XPathException.
 void printStackTrace()
          Prints the stack trace for this exception
 void printStackTrace(java.io.PrintStream stream)
          Prints the stack trace for this exception
 void printStackTrace(java.io.PrintWriter writer)
          Prints the stack trace for this exception
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, setStackTrace, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

XPathException

public XPathException(java.lang.String message)
Creates a new XPathException with the given message

Parameters:
message - the error message for this XPathException

XPathException

public XPathException(java.lang.String message,
                      java.lang.Exception exception)
Creates a new XPathException with the given message and exception.

Parameters:
message - the error message for this XPathException
exception - the Exception which caused the error.

XPathException

public XPathException(java.lang.Exception exception)
Creates a new XPathException with the given exception.

Parameters:
exception - the Exception which caused the error.
Method Detail

getException

public java.lang.Exception getException()
Returns the nested exception for this XPathException.

Returns:
the nested exception, or null if no nested exception exists.

printStackTrace

public void printStackTrace()
Prints the stack trace for this exception

Overrides:
printStackTrace in class java.lang.Throwable

printStackTrace

public void printStackTrace(java.io.PrintStream stream)
Prints the stack trace for this exception

Overrides:
printStackTrace in class java.lang.Throwable
Parameters:
stream - the PrintStream to print the stack trace to.

printStackTrace

public void printStackTrace(java.io.PrintWriter writer)
Prints the stack trace for this exception

Overrides:
printStackTrace in class java.lang.Throwable
Parameters:
writer - the PrintWriter to print the stack trace to.