Base class for runtime exceptions. This class extends the basic Java RuntimeException with a constructor that can take a Nameable as an argument.
This exception supports all the constructor forms of KernelException, but is implemented as a RuntimeException so that it does not have to be declared.
The cause argument to the constructor is a Throwable that caused the exception. The cause argument is used when code throws an exception and we want to rethrow the exception but print the stacktrace where the first exception occurred. This is called exception chaining.
JDK1.4 and later support exception chaining. We are implementing a version of exception chaining here ourselves so that we can use JVMs earlier than JDK1.4. See the {@link KernelException}documentation for differences between our exception chaining implementation and the JDK1.4 implementation.
@author Edward A. Lee, Christopher Hylands
@version $Id: KernelRuntimeException.java,v 1.39 2007/12/06 21:56:24 cxh Exp $
@since Ptolemy II 1.0
@Pt.ProposedRating Green (cxh)
@Pt.AcceptedRating Green (cxh)