onyo.lib.exceptions module
- exception onyo.lib.exceptions.InvalidArgumentError[source]
Bases:
ExceptionRaise if a (CLI-) command is invalidly called beyond what’s covered by argparse.
- exception onyo.lib.exceptions.InvalidAssetError[source]
Bases:
ExceptionRaise if an asset is invalid.
- exception onyo.lib.exceptions.InvalidInventoryOperationError[source]
Bases:
InventoryOperationErrorRaise if an invalid inventory operation is requested.
- exception onyo.lib.exceptions.InventoryDirNotEmpty[source]
Bases:
InvalidInventoryOperationErrorRaise if an inventory directory is not empty but needs to be in order to perform an operation.
- exception onyo.lib.exceptions.InventoryOperationError[source]
Bases:
ExceptionRaise if an inventory operation cannot be executed.
- exception onyo.lib.exceptions.NoopError[source]
Bases:
InventoryOperationErrorRaise if a requested operation is a no-op.
Signal that an inventory operation would not result in a change, allowing callers to determine the failure paradigm: state (already-fine; success) vs task (can’t-do; failure).
- exception onyo.lib.exceptions.NotADirError[source]
Bases:
ExceptionRaise if an object is expected to be a directory but is not.
- exception onyo.lib.exceptions.NotAnAssetError[source]
Bases:
ExceptionRaise if an object is expected to be an asset but is not.
- exception onyo.lib.exceptions.OnyoCLIExitCode(message, returncode)[source]
Bases:
ExceptionRaise if the Onyo CLI should exit with a specific value.
- exception onyo.lib.exceptions.OnyoInvalidFilterError[source]
Bases:
ExceptionRaise if filters are invalidly defined.
- exception onyo.lib.exceptions.OnyoInvalidRepoError[source]
Bases:
OnyoRepoErrorRaise if the repository is invalid.
- exception onyo.lib.exceptions.OnyoProtectedPathError[source]
Bases:
ExceptionRaise if path is protected.
For example:
.git/,onyo.lib.consts.ANCHOR_FILE_NAME,onyo.lib.consts.ONYO_DIR, etc.
- exception onyo.lib.exceptions.OnyoRepoError[source]
Bases:
ExceptionRaise if something is wrong with an Onyo repository.
- exception onyo.lib.exceptions.PendingInventoryOperationError[source]
Bases:
InventoryOperationErrorRaise if there are unexpected pending operations.