|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.pentaho.reporting.libraries.base.util.StackableRuntimeException
public class StackableRuntimeException
A baseclass for RuntimeExceptions, which could have parent exceptions. These parent exceptions are raised in a subclass and are now wrapped into a subclass of this Exception.
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 Summary | |
---|---|
StackableRuntimeException()
Creates a StackableRuntimeException with no message and no parent. |
|
StackableRuntimeException(String message)
Creates an exception. |
|
StackableRuntimeException(String message,
Exception ex)
Creates an exception. |
|
StackableRuntimeException(String message,
Throwable ex)
Creates an exception. |
Method Summary | |
---|---|
Exception |
getParent()
Deprecated. use the throwable instead. |
Throwable |
getParentThrowable()
|
void |
printStackTrace()
Prints the stack trace to System.err. |
void |
printStackTrace(PrintStream stream)
Prints the stack trace to the specified stream. |
void |
printStackTrace(PrintWriter writer)
Prints the stack trace to the specified writer. |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, setStackTrace, toString |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public StackableRuntimeException()
public StackableRuntimeException(String message, Throwable ex)
message
- the exception message.ex
- the parent exception.public StackableRuntimeException(String message, Exception ex)
message
- the exception message.ex
- the parent exception.public StackableRuntimeException(String message)
message
- the exception message.Method Detail |
---|
public Exception getParent()
public Throwable getParentThrowable()
public void printStackTrace(PrintStream stream)
printStackTrace
in class Throwable
stream
- the output stream.public void printStackTrace(PrintWriter writer)
printStackTrace
in class Throwable
writer
- the writer.public void printStackTrace()
printStackTrace
in class Throwable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |