Exceptions¶
secret_type.exceptions
¶
This module contains exceptions that are used by the rest of the library.
SecretException
¶
Bases: Exception
The base exception for this library.
All other exceptions are subclasses of this one.
Source code in secret_type/exceptions.py
9 10 11 12 13 14 15 |
|
SecretFloatException
¶
Bases: SecretException
Raised when an unsupported operation is attempted on a Secret[NumberLike]
.
Source code in secret_type/exceptions.py
18 19 20 21 22 23 24 25 |
|
SecretKeyException
¶
Bases: SecretException
Raised when a Secret
is used as a key or index.
Source code in secret_type/exceptions.py
28 29 30 31 32 33 34 35 |
|
SecretBoolException
¶
Bases: SecretException
Raised when a Secret[bool]
is used for control flow.
Source code in secret_type/exceptions.py
38 39 40 41 42 43 44 45 |
|