onyo.lib.exceptions module

exception onyo.lib.exceptions.InvalidArgumentError[source]

Bases: Exception

Raised a (CLI-) command is invalidly called beyond what’s covered by argparse.

exception onyo.lib.exceptions.InvalidInventoryOperationError[source]

Bases: InventoryOperationError

Raised if an invalid inventory operation is requested.

exception onyo.lib.exceptions.InventoryDirNotEmpty[source]

Bases: InvalidInventoryOperationError

Raised if an inventory directory needs to be empty to perform an operation but is not.

exception onyo.lib.exceptions.InventoryOperationError[source]

Bases: Exception

Raised if an inventory operation cannot be executed.

exception onyo.lib.exceptions.NoopError[source]

Bases: InventoryOperationError

Raised if a requested operation is a Noop.

exception onyo.lib.exceptions.NotADirError[source]

Bases: Exception

Raised if an object is expected to be a directory but is not.

exception onyo.lib.exceptions.NotAnAssetError[source]

Bases: Exception

Raised if an object is expected to be an asset but is not.

exception onyo.lib.exceptions.OnyoInvalidFilterError[source]

Bases: Exception

Raised if filters are invalidly defined.

exception onyo.lib.exceptions.OnyoInvalidRepoError[source]

Bases: OnyoRepoError

Raised if the repository is invalid.

exception onyo.lib.exceptions.OnyoProtectedPathError[source]

Bases: Exception

Raised if path is protected (.anchor, .git/, .onyo/).

exception onyo.lib.exceptions.OnyoRepoError[source]

Bases: Exception

Raised if something is wrong with an Onyo repository.

exception onyo.lib.exceptions.PendingInventoryOperationError[source]

Bases: InventoryOperationError

Raised if there are unexpected pending operations.