trestle.common.err
trestle.common.err
¤
Trestle core errors module.
Classes¤
TrestleError
¤
Bases: RuntimeError
General framework (non-application) related errors.
Attributes:
Name | Type | Description |
---|---|---|
msg | str | Human readable string describing the exception. |
Source code in trestle/common/err.py
23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 |
|
Attributes¤
msg = msg
instance-attribute
¤
Functions¤
__init__(msg)
¤
Intialization for TresleError.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
msg | str | The error message | required |
Source code in trestle/common/err.py
31 32 33 34 35 36 37 38 |
|
__str__()
¤
Return Trestle error message if asked for a string.
Source code in trestle/common/err.py
40 41 42 |
|
TrestleIncorrectArgsError
¤
Bases: TrestleError
General error for incorrect args passed to Trestle command.
Source code in trestle/common/err.py
76 77 78 79 80 81 82 83 84 85 86 |
|
Functions¤
__init__(msg)
¤
Initialize TrestleIncorrectArgsError.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
msg | str | The error message | required |
Source code in trestle/common/err.py
79 80 81 82 83 84 85 86 |
|
TrestleNotFoundError
¤
Bases: TrestleError
General framework related not found error.
Attributes:
Name | Type | Description |
---|---|---|
msg | str | Human readable string describing the exception. |
Source code in trestle/common/err.py
45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 |
|
Functions¤
__init__(msg)
¤
Intialize TresleNotFoundError.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
msg | str | The error message | required |
Source code in trestle/common/err.py
53 54 55 56 57 58 59 60 |
|
TrestleRootError
¤
Bases: TrestleError
General error for trestle workspace root/setup errors.
Source code in trestle/common/err.py
63 64 65 66 67 68 69 70 71 72 73 |
|
Functions¤
__init__(msg)
¤
Initialize TrestleRootError.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
msg | str | The error message | required |
Source code in trestle/common/err.py
66 67 68 69 70 71 72 73 |
|
Functions¤
handle_generic_command_exception(exception, logger, msg='Exception occured during execution')
¤
Print out error message based on the verbosity and return appropriate status code.
Source code in trestle/common/err.py
89 90 91 92 93 94 95 96 97 98 |
|
handler: python