Exceptions
sereto.exceptions
¶
SeretoCalledProcessError
¶
Bases: SeretoException
Called process error.
Source code in sereto/exceptions.py
35 36 | |
SeretoEncryptionError
¶
Bases: SeretoException
Encryption error.
Source code in sereto/exceptions.py
15 16 | |
SeretoException
¶
Bases: Exception
There was an ambiguous exception.
Source code in sereto/exceptions.py
11 12 | |
SeretoPathError
¶
Bases: SeretoException
Path error.
Source code in sereto/exceptions.py
19 20 | |
SeretoRuntimeError
¶
Bases: SeretoException
Runtime error.
Source code in sereto/exceptions.py
23 24 | |
SeretoTypeError
¶
Bases: SeretoException
Type error.
Source code in sereto/exceptions.py
27 28 | |
SeretoValueError
¶
Bases: SeretoException, ValueError
Value error.
Source code in sereto/exceptions.py
31 32 | |
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
39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 | |