Save This Page
Home » jcommon-1.0.13 » org.jfree.util » [javadoc | source]
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.

Constructor:
 public StackableRuntimeException() 
 public StackableRuntimeException(String message) 
    Creates an exception.
    Parameters:
    message - the exception message.
 public StackableRuntimeException(String message,
    Exception ex) 
    Creates an exception.
    Parameters:
    message - the exception message.
    ex - the parent exception.
Method from org.jfree.util.StackableRuntimeException Summary:
getParent,   printStackTrace,   printStackTrace
Methods from java.lang.Throwable:
fillInStackTrace,   getCause,   getLocalizedMessage,   getMessage,   getStackTrace,   initCause,   printStackTrace,   printStackTrace,   printStackTrace,   setStackTrace,   toString
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.jfree.util.StackableRuntimeException Detail:
 public Exception getParent() 
    Returns the parent exception (possibly null).
 public  void printStackTrace(PrintStream stream) 
    Prints the stack trace to the specified stream.
 public  void printStackTrace(PrintWriter writer) 
    Prints the stack trace to the specified writer.