nexosim.exceptions
Simulation-related exceptions.
All exceptions derive from the SimulationError class.
SimulationError
Bases: Exception
The base class for exceptions thrown by a Simulation.
MissingArgumentError
Bases: SimulationError
Raised when a simulation call was invoked with too few arguments.
InvalidTimeError
Bases: SimulationError
Raised when the provided timestamp is not well-formed.
InvalidPeriodError
Bases: SimulationError
Raised when a null or negative period was provided.
InvalidDeadlineError
Bases: SimulationError
Raised when a deadline that is not in the future of the current simulation time was provided.
InvalidMessageError
Bases: SimulationError
Raised when the provided event, query or initialization configuration message is invalid.
InvalidKeyError
Bases: SimulationError
Raised when an event key is invalid or outdated.
SimulationNotStartedError
Bases: SimulationError
Raised when the simulation is invoked before it was initialized.
SimulationHaltedError
Bases: SimulationError
The simulation has been intentionally stopped.
SimulationTerminatedError
Bases: SimulationError
The simulation has been terminated due to an earlier deadlock, message loss, missing recipient, model panic, timeout or synchronization loss
SimulationDeadlockError
Bases: SimulationError
Raised when the simulation has deadlocked.
SimulationMessageLossError
Bases: SimulationError
Raised when the recipient of a message does not exists.
SimulationNoRecipientError
Bases: SimulationError
Raised when the simulation is invoked before it was initialized.
SimulationPanicError
Bases: SimulationError
Raised when a panic is caught during execution.
SimulationTimeoutError
Bases: SimulationError
Raised when a simulation step fails to complete within the allocated time.
SimulationOutOfSyncError
Bases: SimulationError
Raised when the simulation has lost synchronization with the clock.
SimulationBadQueryError
Bases: SimulationError
Raised when a query did not obtain a response because the mailbox targeted by the query was not found in the simulation.
SimulationTimeOutOfRangeError
Bases: SimulationError
Raised when the provided simulation time is out of the range supported by the Python timestamp.
SourceNotFoundError
Bases: SimulationError
Raised when the provided name does not match any event or query source.
SinkNotFoundError
Bases: SimulationError
Raised when the provided name does not match any event sink.
UnexpectedError
Bases: SimulationError
Raised when an internal implementation error occurs.