org.exolab.adaptx.xpath

Class XPathException

Known Direct Subclasses:
ParseException

public class XPathException
extends 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

Constructor Summary

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

Method Summary

Exception
getException()
Returns the nested exception for this XPathException.
void
printStackTrace()
Prints the stack trace for this exception
void
printStackTrace(PrintStream stream)
Prints the stack trace for this exception
void
printStackTrace(PrintWriter writer)
Prints the stack trace for this exception

Constructor Details

XPathException

public XPathException(Exception exception)
Creates a new XPathException with the given exception.
Parameters:
exception - the Exception which caused the error.

XPathException

public XPathException(String message)
Creates a new XPathException with the given message
Parameters:
message - the error message for this XPathException

XPathException

public XPathException(String message,
                      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.

Method Details

getException

public 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

printStackTrace

public void printStackTrace(PrintStream stream)
Prints the stack trace for this exception
Parameters:
stream - the PrintStream to print the stack trace to.

printStackTrace

public void printStackTrace(PrintWriter writer)
Prints the stack trace for this exception
Parameters:
writer - the PrintWriter to print the stack trace to.