simpy.exceptions
— Exception types used by SimPy¶
SimPy specific exeptions.
-
exception
simpy.exceptions.
SimPyException
¶ Base class for all SimPy specific exceptions.
-
exception
simpy.exceptions.
Interrupt
(cause: Optional[Any])¶ Exception thrown into a process if it is interrupted (see
interrupt()
).cause
provides the reason for the interrupt, if any.If a process is interrupted concurrently, all interrupts will be thrown into the process in the same order as they occurred.
-
cause
¶ The cause of the interrupt or
None
if no cause was provided.
-