org.jfree.util
public class: StackableRuntimeException [javadoc |
source]
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.jfree.util.StackableRuntimeException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
FunctionProcessingException, InvalidStyleSheetCollectionException
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.
| Methods from java.lang.Throwable: |
|---|
|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
| Method from org.jfree.util.StackableRuntimeException Detail: |
public Exception getParent() {
return this.parent;
}
Returns the parent exception (possibly null). |
public void printStackTrace(PrintStream stream) {
super.printStackTrace(stream);
if (getParent() != null) {
stream.println("ParentException: ");
getParent().printStackTrace(stream);
}
}
Prints the stack trace to the specified stream. |
public void printStackTrace(PrintWriter writer) {
super.printStackTrace(writer);
if (getParent() != null) {
writer.println("ParentException: ");
getParent().printStackTrace(writer);
}
}
Prints the stack trace to the specified writer. |