adevs
Class SimulationException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by adevs.SimulationException
All Implemented Interfaces:
java.io.Serializable

public class SimulationException
extends java.lang.Exception

These exceptions are thrown by the simulator to indicate problems at execution time.

See Also:
Serialized Form

Field Summary
 Devs src
           
 
Constructor Summary
SimulationException(java.lang.String msg)
          Create an exception not attributed to any particular model.
SimulationException(java.lang.String msg, Devs src)
          Create an exception attributed to a specific model.
 
Method Summary
 Devs who()
          Get the model that caused the error, or null if it is not attributed to a model.
 
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

src

public Devs src
Constructor Detail

SimulationException

public SimulationException(java.lang.String msg,
                           Devs src)
Create an exception attributed to a specific model.

Parameters:
msg - Description of the error

SimulationException

public SimulationException(java.lang.String msg)
Create an exception not attributed to any particular model.

Method Detail

who

public Devs who()
Get the model that caused the error, or null if it is not attributed to a model.