|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.lang.Throwable | +--java.lang.Exception | +--org.jfree.util.StackableException
A baseclass for exceptions, 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 | |
StackableException()
Creates a StackableRuntimeException with no message and no parent. |
|
StackableException(java.lang.String message)
Creates an exception. |
|
StackableException(java.lang.String message,
java.lang.Exception ex)
Creates an exception. |
Method Summary | |
java.lang.Exception |
getParent()
Returns the parent exception (possibly null). |
void |
printStackTrace(java.io.PrintStream stream)
Prints the stack trace to the specified stream. |
void |
printStackTrace(java.io.PrintWriter writer)
Prints the stack trace to the specified writer. |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public StackableException()
public StackableException(java.lang.String message, java.lang.Exception ex)
message
- the exception message.ex
- the parent exception.public StackableException(java.lang.String message)
message
- the exception message.Method Detail |
public java.lang.Exception getParent()
public void printStackTrace(java.io.PrintStream stream)
printStackTrace
in class java.lang.Throwable
stream
- the output stream.public void printStackTrace(java.io.PrintWriter writer)
printStackTrace
in class java.lang.Throwable
writer
- the writer.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |