org.jaxen

Class JaxenRuntimeException


public class JaxenRuntimeException
extends RuntimeException

This class exists to wrap Jaxen exceptions that otherwise wouldn't be propagated up through the axis iterators.

Field Summary

private Throwable
cause
private boolean
causeSet
private static long
serialVersionUID

Constructor Summary

JaxenRuntimeException(String message)
Create a new JaxenRuntimeException.
JaxenRuntimeException(Throwable cause)
Create a new JaxenRuntimeException.

Method Summary

Throwable
getCause()
Returns the exception that caused this exception.
Throwable
initCause(Throwable cause)
Sets the exception that caused this exception.
void
printStackTrace(PrintStream s)
Print this exception's stack trace, followed by the source exception's trace, if any.
void
printStackTrace(PrintWriter s)
Print this exception's stack trace, followed by the source exception's stack trace, if any.

Field Details

cause

private Throwable cause

causeSet

private boolean causeSet

serialVersionUID

private static final long serialVersionUID
Field Value:
-930309761511911193L

Constructor Details

JaxenRuntimeException

public JaxenRuntimeException(String message)
Create a new JaxenRuntimeException.
Parameters:
message - the detail message

JaxenRuntimeException

public JaxenRuntimeException(Throwable cause)
Create a new JaxenRuntimeException.
Parameters:
cause - the nested exception that's wrapped inside this exception

Method Details

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.
Returns:
the exception that caused this exception

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.
Parameters:
cause - the exception wrapped in this runtime exception
Returns:
this exception

printStackTrace

public void printStackTrace(PrintStream s)
Print this exception's stack trace, followed by the source exception's trace, if any.
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.
Parameters:
s - the writer on which to print the stack trace