Exceptions
sereto.exceptions
¶
SeretoCalledProcessError
¶
Bases: SeretoException
Called process error.
Source code in sereto/exceptions.py
42 43 |
|
SeretoEncryptionError
¶
Bases: SeretoException
Encryption error.
Source code in sereto/exceptions.py
22 23 |
|
SeretoException
¶
Bases: Exception
There was an ambiguous exception.
Source code in sereto/exceptions.py
18 19 |
|
SeretoPathError
¶
Bases: SeretoException
Path error.
Source code in sereto/exceptions.py
26 27 |
|
SeretoRuntimeError
¶
Bases: SeretoException
Runtime error.
Source code in sereto/exceptions.py
30 31 |
|
SeretoTypeError
¶
Bases: SeretoException
Type error.
Source code in sereto/exceptions.py
34 35 |
|
SeretoValueError
¶
Bases: SeretoException
, ValueError
Value error.
Source code in sereto/exceptions.py
38 39 |
|
handle_exceptions(func)
¶
Decorator for pretty printing SeReTo exceptions in debug mode.
If the exception is a subclass of SeretoException and DEBUG environment variable is set to '1', the full exception traceback will be printed with local variables shown.
Source code in sereto/exceptions.py
50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 |
|