public class SimulationException
extends java.lang.Exception
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
Devs |
who()
Get the model that caused the error, or null if it is not
attributed to a model.
|
public Devs src
public SimulationException(java.lang.String msg, Devs src)
msg
- Description of the errorsrc
- The model that caused the problempublic SimulationException(java.lang.String msg)
public Devs who()