sim.util
Class CausedRuntimeException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
sim.util.CausedRuntimeException
- All Implemented Interfaces:
- java.io.Serializable
public class CausedRuntimeException
- extends java.lang.RuntimeException
A simple RuntimeException which wraps a deeper exception inside of it and
prints it in a fashion similar to exceptions like InvocationTargetException.
This exception is largely obviated by the 'cause' mechanism in Java 1.4
Throwables -- but Java 1.3 doesn't have it and thus we need it.
- See Also:
- Serialized Form
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, setStackTrace, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
CausedRuntimeException
protected CausedRuntimeException()
CausedRuntimeException
public CausedRuntimeException(java.lang.Throwable target)
CausedRuntimeException
public CausedRuntimeException(java.lang.Throwable target,
java.lang.String message)
printStackTrace
public void printStackTrace(java.io.PrintStream stream)
- Overrides:
printStackTrace
in class java.lang.Throwable
printStackTrace
public void printStackTrace(java.io.PrintWriter stream)
- Overrides:
printStackTrace
in class java.lang.Throwable
printStackTrace
public void printStackTrace()
- Overrides:
printStackTrace
in class java.lang.Throwable