Exceptions
sereto.exceptions
¶
SeretoCalledProcessError
¶
Bases: SeretoException
Called process error.
Source code in sereto/exceptions.py
41 42 |
|
SeretoEncryptionError
¶
Bases: SeretoException
Encryption error.
Source code in sereto/exceptions.py
21 22 |
|
SeretoException
¶
Bases: Exception
There was an ambiguous exception.
Source code in sereto/exceptions.py
17 18 |
|
SeretoPathError
¶
Bases: SeretoException
Path error.
Source code in sereto/exceptions.py
25 26 |
|
SeretoRuntimeError
¶
Bases: SeretoException
Runtime error.
Source code in sereto/exceptions.py
29 30 |
|
SeretoTypeError
¶
Bases: SeretoException
Type error.
Source code in sereto/exceptions.py
33 34 |
|
SeretoValueError
¶
Bases: SeretoException
, ValueError
Value error.
Source code in sereto/exceptions.py
37 38 |
|
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
45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 |
|