com.newisys.eventsim
Class UnhandledExceptionException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by com.newisys.eventsim.UnhandledExceptionException
All Implemented Interfaces:
Serializable

public class UnhandledExceptionException
extends RuntimeException

Exception thrown by SimulationManager.executeThreads() when a simulation thread is terminated by an unhandled exception.

See Also:
SimulationManager.executeThreads(), Serialized Form

Constructor Summary
UnhandledExceptionException(SimulationThread thread, Throwable exception)
          Constructs a new UnhandledExceptionException for the given simulation thread and unhandled exception.
 
Method Summary
 SimulationThread getThread()
          Returns the simulation thread that was terminated by the unhandled exception.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UnhandledExceptionException

public UnhandledExceptionException(SimulationThread thread,
                                   Throwable exception)
Constructs a new UnhandledExceptionException for the given simulation thread and unhandled exception.

Parameters:
thread - the simulation thread that was terminated by the unhandled exception
exception - the unhandled exception
Method Detail

getThread

public SimulationThread getThread()
Returns the simulation thread that was terminated by the unhandled exception.

Returns:
the simulation thread