jist.runtime
Class JistException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Error
          extended by jist.runtime.JistException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
JistException.JistSimulationEndException

 class JistException
extends java.lang.Error

Encodes the RuntimeExceptions related to JiST system operations.

Since:
JIST1.0
Version:
$Id: JistException.java,v 1.17 2004/04/06 16:07:43 barr Exp $
Author:
Rimon Barr <barr+jist@cs.cornell.edu>

Nested Class Summary
static class JistException.JistSimulationEndException
          End of simulation Jist exception.
 
Field Summary
private  java.lang.Throwable nested
          Nested exception that caused Jist exception.
private  java.lang.String nestedStackTrace
          Stack trace of nested exception that caused Jist exception.
 
Constructor Summary
JistException(java.lang.String s, java.lang.Throwable t)
          Initialize jist exception with error string and nested exception.
 
Method Summary
 java.lang.String getMessage()
          Return exception error message.
 java.lang.Throwable getNested()
          Return nested exception.
 void printStackTrace()
          Show stack trace on System error stream.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

nested

private java.lang.Throwable nested
Nested exception that caused Jist exception.


nestedStackTrace

private java.lang.String nestedStackTrace
Stack trace of nested exception that caused Jist exception.

Constructor Detail

JistException

public JistException(java.lang.String s,
                     java.lang.Throwable t)
Initialize jist exception with error string and nested exception.

Parameters:
s - error string
t - nested exception
Method Detail

getMessage

public java.lang.String getMessage()
Return exception error message.

Overrides:
getMessage in class java.lang.Throwable
Returns:
exception error message

printStackTrace

public void printStackTrace()
Show stack trace on System error stream.

Overrides:
printStackTrace in class java.lang.Throwable

getNested

public java.lang.Throwable getNested()
Return nested exception.

Returns:
nested exception