org.jaxen
Class JaxenException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byorg.jaxen.saxpath.SAXPathException
              extended byorg.jaxen.JaxenException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
FunctionCallException, UnresolvableException, UnsupportedAxisException, XPathSyntaxException

public class JaxenException
extends SAXPathException

Generic Jaxen exception.

This is the root of all Jaxen exceptions. It may wrap other exceptions.

Author:
bob mcwhirter
See Also:
Serialized Form

Constructor Summary
JaxenException(java.lang.String message)
          Create an exception with a detail message.
JaxenException(java.lang.String message, java.lang.Throwable nestedException)
          Create a new JaxenException with the specified detail message and root cause.
JaxenException(java.lang.Throwable rootCause)
          Create an exception caused by another exception.
 
Method Summary
 java.lang.Throwable getCause()
          Returns the exception that caused this exception.
 java.lang.Throwable initCause(java.lang.Throwable cause)
          Sets the exception that caused this exception.
 void printStackTrace(java.io.PrintStream s)
          Print this exception's stack trace, followed by the source exception's trace, if any.
 void printStackTrace(java.io.PrintWriter w)
          Print this exception's stack trace, followed by the source exception's stack trace, if any.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JaxenException

public JaxenException(java.lang.String message)
Create an exception with a detail message.

Parameters:
message - the error message

JaxenException

public JaxenException(java.lang.Throwable rootCause)
Create an exception caused by another exception.

Parameters:
rootCause - the root cause of this exception

JaxenException

public JaxenException(java.lang.String message,
                      java.lang.Throwable nestedException)
Create a new JaxenException with the specified detail message and root cause.

Parameters:
message - the detail message
nestedException - the cause of this exception
Method Detail

getCause

public java.lang.Throwable getCause()
Returns the exception that caused this exception. This is necessary to implement Java 1.4 chained exception functionality in a Java 1.3-compatible way.

Overrides:
getCause in class SAXPathException
Returns:
the exception that caused this exception

initCause

public java.lang.Throwable initCause(java.lang.Throwable cause)
Sets the exception that caused this exception. This is necessary to implement Java 1.4 chained exception functionality in a Java 1.3-compatible way.

Overrides:
initCause in class SAXPathException
Parameters:
cause - the exception wrapped in this runtime exception
Returns:
this exception

printStackTrace

public void printStackTrace(java.io.PrintStream s)
Description copied from class: SAXPathException
Print this exception's stack trace, followed by the source exception's trace, if any.

Overrides:
printStackTrace in class SAXPathException
Parameters:
s - the stream on which to print the stack trace

printStackTrace

public void printStackTrace(java.io.PrintWriter w)
Description copied from class: SAXPathException
Print this exception's stack trace, followed by the source exception's stack trace, if any.

Overrides:
printStackTrace in class SAXPathException
Parameters:
w - the writer on which to print the stack trace


Copyright © 2001-2005 Codehaus. All Rights Reserved.