versioned_collection.errors module

Custom errors used in versioned_collection.

exception versioned_collection.errors.AutoMergeFailedError(branch: str)[source]

Bases: Exception

Raised when automatically merging two branches produces conflicts.

exception versioned_collection.errors.BranchNotFound(branch_name: str)[source]

Bases: Exception

Raised when a branch could not be found.

exception versioned_collection.errors.CollectionAlreadyInitialised(message: str = 'You tried to call `init()` on an already initialised versioned collection.')[source]

Bases: Exception

Raised when an initialised collection is tried to be reinitialised.

exception versioned_collection.errors.InvalidCollectionState[source]

Bases: Exception

Raised when something terrible happens.

exception versioned_collection.errors.InvalidCollectionVersion(version: int, branch: str, message: str = 'Version (version: {}, branch: {}) does not exist in the version tree.')[source]

Bases: Exception

Raised when trying to check out to a wrong collection version.

exception versioned_collection.errors.InvalidOperation(message: str)[source]

Bases: Exception

Raised when an invalid operation is attempted on the collection.