org.exolab.adaptx.util
Class NestedRuntimeException
RuntimeException
org.exolab.adaptx.util.NestedRuntimeException
public class NestedRuntimeException
extends RuntimeException
A RuntimeException class which can hold another Exception.
Very useful when reporting deep errors that occur in
methods that have no defined exception reporting.
$Revision: 1.1.1.1 $ $Date: 2003/03/01 07:39:32 $NestedRuntimeException(Exception exception) - Creates a new NestedRuntimeException with the given exception.
|
NestedRuntimeException(String message) - Creates a new NestedRuntimeException with the given message
|
NestedRuntimeException(String message, Exception exception) - Creates a new NestedRuntimeException with the given message
and exception.
|
Exception | getException() - Returns the nested exception for this NestedRuntimeException.
|
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
|
NestedRuntimeException
public NestedRuntimeException(Exception exception)
Creates a new NestedRuntimeException with the given exception.
exception
- the Exception which caused the error.
NestedRuntimeException
public NestedRuntimeException(String message)
Creates a new NestedRuntimeException with the given message
message
- the error message for this NestedRuntimeException
NestedRuntimeException
public NestedRuntimeException(String message,
Exception exception)
Creates a new NestedRuntimeException with the given message
and exception.
message
- the error message for this NestedRuntimeExceptionexception
- the Exception which caused the error.
getException
public Exception getException()
Returns the nested exception for this NestedRuntimeException.
- 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
stream
- the PrintStream to print the stack trace to.
printStackTrace
public void printStackTrace(PrintWriter writer)
Prints the stack trace for this exception
writer
- the PrintWriter to print the stack trace to.