swh.storage.exc module

exception swh.storage.exc.StorageDBError[source]

Bases: Exception

Specific storage db error (connection, erroneous queries, etc…)

exception swh.storage.exc.StorageAPIError[source]

Bases: Exception

Specific internal storage api (mainly connection)

exception swh.storage.exc.StorageArgumentException[source]

Bases: Exception

Argument passed to a Storage endpoint is invalid.

exception swh.storage.exc.HashCollision(algo, hash_id, colliding_contents)[source]

Bases: Exception

Exception raised when a content collides in a storage backend

colliding_content_hashes() → List[Dict[str, bytes]][source]