Panics
Panics represented as errors.
Panic
Bases: AnyError
Represents panics as errors.
Panics should not be explicitly handled in general, therefore Panic
is derived from AnyError
.
Source code in src/wraps/panics.py
15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 |
|
panic(message: Optional[str] = None) -> Never
Panics with the optional message.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
message |
Optional[str]
|
The message to panic with. |
None
|
Raises:
Type | Description |
---|---|
Panic
|
Always raised. |
Source code in src/wraps/panics.py
35 36 37 38 39 40 41 42 43 44 |
|