Interrupt
Interruption exceptions.
Interrupt
Bases: Exception
Custom exception class for interruptions.
Source code in src/asimpy/interrupt.py
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | |
__init__(cause)
Construct a new interruption exception.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
cause
|
Any
|
reason for interruption. |
required |
Source code in src/asimpy/interrupt.py
9 10 11 12 13 14 15 16 17 | |
__str__()
Format interruption as printable string.
Returns: string representation of interruption and cause.
Source code in src/asimpy/interrupt.py
19 20 21 22 23 24 25 | |