public class NestedRuntimeException
extends java.lang.RuntimeException
Constructor and Description |
---|
NestedRuntimeException(java.lang.Exception exception)
Creates a new NestedRuntimeException with the given exception.
|
NestedRuntimeException(java.lang.String message)
Creates a new NestedRuntimeException with the given message
|
NestedRuntimeException(java.lang.String message,
java.lang.Exception exception)
Creates a new NestedRuntimeException with the given message
and exception.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Exception |
getException()
Returns the nested exception for this NestedRuntimeException.
|
void |
printStackTrace()
Prints the stack trace for this exception
|
void |
printStackTrace(java.io.PrintStream stream)
Prints the stack trace for this exception
|
void |
printStackTrace(java.io.PrintWriter writer)
Prints the stack trace for this exception
|
public NestedRuntimeException(java.lang.String message)
message
- the error message for this NestedRuntimeExceptionpublic NestedRuntimeException(java.lang.String message, java.lang.Exception exception)
message
- the error message for this NestedRuntimeExceptionexception
- the Exception which caused the error.public NestedRuntimeException(java.lang.Exception exception)
exception
- the Exception which caused the error.public java.lang.Exception getException()
public void printStackTrace()
printStackTrace
in class java.lang.Throwable
public void printStackTrace(java.io.PrintStream stream)
printStackTrace
in class java.lang.Throwable
stream
- the PrintStream to print the stack trace to.public void printStackTrace(java.io.PrintWriter writer)
printStackTrace
in class java.lang.Throwable
writer
- the PrintWriter to print the stack trace to.