trestle.core.commands.common.return_codes
trestle.core.commands.common.return_codes ¤
Trestle command return codes.
Classes¤
CmdReturnCodes ¤
Bases: Enum
flowchart TD
trestle.core.commands.common.return_codes.CmdReturnCodes[CmdReturnCodes]
click trestle.core.commands.common.return_codes.CmdReturnCodes href "" "trestle.core.commands.common.return_codes.CmdReturnCodes"
Trestle CLI return codes.
SUCCESS - Operation/validation completed successfully COMMAND_ERROR - Generic expected error while executing command (handled by command) INCORRECT_ARGS - Provided arguments were incorrect/incomplete DOCUMENTS_VALIDATION_ERROR - Validation of the markdown or drawio files failed MODEL_VALIDATION_ERROR - Validation of OSCAL model failed TRESTLE_ROOT_ERROR - Workspace setup has failed, the root is not trestle directory IO_ERROR - IO related errors, i.e. permission issue, non-existing file, etc AUTH_ERROR - Authenication error while accessing/storing cache UNKNOWN_ERROR - Unexpected error (unhandled by command) INVALID_MODEL - Loaded model is invalid
Source code in trestle/core/commands/common/return_codes.py
21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 | |
Attributes¤
AUTH_ERROR = 7 class-attribute instance-attribute ¤
COMMAND_ERROR = 1 class-attribute instance-attribute ¤
DOCUMENTS_VALIDATION_ERROR = 3 class-attribute instance-attribute ¤
INCORRECT_ARGS = 2 class-attribute instance-attribute ¤
IO_ERROR = 6 class-attribute instance-attribute ¤
OSCAL_VALIDATION_ERROR = 4 class-attribute instance-attribute ¤
SUCCESS = 0 class-attribute instance-attribute ¤
TRESTLE_ROOT_ERROR = 5 class-attribute instance-attribute ¤
UNKNOWN_ERROR = 8 class-attribute instance-attribute ¤
handler: python