Package org.jaxen
Class JaxenRuntimeException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.jaxen.JaxenRuntimeException
-
- All Implemented Interfaces:
Serializable
public class JaxenRuntimeException extends RuntimeException
This class exists to wrap Jaxen exceptions that otherwise wouldn't be propagated up through the axis iterators.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description JaxenRuntimeException(String message)Create a new JaxenRuntimeException.JaxenRuntimeException(Throwable cause)Create a new JaxenRuntimeException.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ThrowablegetCause()Returns the exception that caused this exception.ThrowableinitCause(Throwable cause)Sets the exception that caused this exception.voidprintStackTrace(PrintStream s)Print this exception's stack trace, followed by the source exception's trace, if any.voidprintStackTrace(PrintWriter s)Print this exception's stack trace, followed by the source exception's stack trace, if any.-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
JaxenRuntimeException
public JaxenRuntimeException(Throwable cause)
Create a new JaxenRuntimeException.- Parameters:
cause- the nested exception that's wrapped inside this exception
-
JaxenRuntimeException
public JaxenRuntimeException(String message)
Create a new JaxenRuntimeException.- Parameters:
message- the detail message
-
-
Method Detail
-
getCause
public 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.
-
initCause
public Throwable initCause(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.
-
printStackTrace
public void printStackTrace(PrintStream s)
Print this exception's stack trace, followed by the source exception's trace, if any.- Overrides:
printStackTracein classThrowable- Parameters:
s- the stream on which to print the stack trace
-
printStackTrace
public void printStackTrace(PrintWriter s)
Print this exception's stack trace, followed by the source exception's stack trace, if any.- Overrides:
printStackTracein classThrowable- Parameters:
s- the writer on which to print the stack trace
-
-