public class StackableRuntimeException extends RuntimeException
The parents are printed when this exception is printed. This class exists mainly for debugging reasons, as with them it is easier to detect the root cause of an error.
| Constructor and Description |
|---|
StackableRuntimeException()
Creates a StackableRuntimeException with no message and no parent.
|
StackableRuntimeException(String message)
Creates an exception.
|
StackableRuntimeException(String message,
Exception ex)
Creates an exception.
|
| Modifier and Type | Method and Description |
|---|---|
Exception |
getParent()
Returns the parent exception (possibly null).
|
void |
printStackTrace(PrintStream stream)
Prints the stack trace to the specified stream.
|
void |
printStackTrace(PrintWriter writer)
Prints the stack trace to the specified writer.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, setStackTrace, toStringpublic StackableRuntimeException()
public StackableRuntimeException(String message, Exception ex)
message - the exception message.ex - the parent exception.public StackableRuntimeException(String message)
message - the exception message.public Exception getParent()
public void printStackTrace(PrintStream stream)
printStackTrace in class Throwablestream - the output stream.public void printStackTrace(PrintWriter writer)
printStackTrace in class Throwablewriter - the writer.Copyright © 2009-2012 jtstand.com. All Rights Reserved.