Package org.jaxen
Class JaxenRuntimeException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.jaxen.JaxenRuntimeException
-
- All Implemented Interfaces:
java.io.Serializable
public class JaxenRuntimeException extends java.lang.RuntimeException
This class exists to wrap Jaxen exceptions that otherwise wouldn't be propagated up through the axis iterators.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.Throwable
cause
private boolean
causeSet
private static long
serialVersionUID
-
Constructor Summary
Constructors Constructor Description JaxenRuntimeException(java.lang.String message)
Create a new JaxenRuntimeException.JaxenRuntimeException(java.lang.Throwable cause)
Create a new JaxenRuntimeException.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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 s)
Print this exception's stack trace, followed by the source exception's stack trace, if any.
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
cause
private java.lang.Throwable cause
-
causeSet
private boolean causeSet
-
-
Constructor Detail
-
JaxenRuntimeException
public JaxenRuntimeException(java.lang.Throwable cause)
Create a new JaxenRuntimeException.- Parameters:
cause
- the nested exception that's wrapped inside this exception
-
JaxenRuntimeException
public JaxenRuntimeException(java.lang.String message)
Create a new JaxenRuntimeException.- Parameters:
message
- the detail message
-
-
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 classjava.lang.Throwable
- 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 classjava.lang.Throwable
- Parameters:
cause
- the exception wrapped in this runtime exception- Returns:
- this exception
-
printStackTrace
public void printStackTrace(java.io.PrintStream s)
Print this exception's stack trace, followed by the source exception's trace, if any.- Overrides:
printStackTrace
in classjava.lang.Throwable
- Parameters:
s
- the stream on which to print the stack trace
-
printStackTrace
public void printStackTrace(java.io.PrintWriter s)
Print this exception's stack trace, followed by the source exception's stack trace, if any.- Overrides:
printStackTrace
in classjava.lang.Throwable
- Parameters:
s
- the writer on which to print the stack trace
-
-