diff options
author | drebs <drebs@leap.se> | 2017-12-22 18:28:55 -0200 |
---|---|---|
committer | drebs <drebs@leap.se> | 2017-12-26 09:04:50 -0200 |
commit | d627675a6879d9ac7cbdacdd3f743c14a24c5167 (patch) | |
tree | dc4037279079a0ab38bf476051b54cd8623c9d9a /src/leap/soledad/server/interfaces.py | |
parent | 5a3d6cd05e8f12aba2527b2d711cd0aa7a27f3e8 (diff) |
[bug] add BlobNotFound exception to methods interface
Diffstat (limited to 'src/leap/soledad/server/interfaces.py')
-rw-r--r-- | src/leap/soledad/server/interfaces.py | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/leap/soledad/server/interfaces.py b/src/leap/soledad/server/interfaces.py index 089111e3..96fa2f94 100644 --- a/src/leap/soledad/server/interfaces.py +++ b/src/leap/soledad/server/interfaces.py @@ -44,6 +44,9 @@ class IBlobsBackend(Interface): :return: A deferred that fires when the blob has been written to the consumer. :rtype: twisted.internet.defer.Deferred + + :raise BlobNotFound: Raised (asynchronously) when the blob was not + found in the backend. """ def write_blob(user, blob_id, producer, namespace=''): @@ -80,6 +83,9 @@ class IBlobsBackend(Interface): :return: A deferred that fires when the blob has been deleted. :rtype: twisted.internet.defer.Deferred + + :raise BlobNotFound: Raised (asynchronously) when the blob was not + found in the backend. """ def get_blob_size(user, blob_id, namespace=''): @@ -95,6 +101,9 @@ class IBlobsBackend(Interface): :return: A deferred that fires with the size of the blob. :rtype: twisted.internet.defer.Deferred + + :raise BlobNotFound: Raised (asynchronously) when the blob was not + found in the backend. """ def count(user, namespace=''): @@ -168,6 +177,9 @@ class IBlobsBackend(Interface): :return: A deferred that fires with the tag of the blob. :rtype: twisted.internet.defer.Deferred + + :raise BlobNotFound: Raised (asynchronously) when the blob was not + found in the backend. """ def get_flags(user, blob_id, namespace=''): @@ -183,6 +195,9 @@ class IBlobsBackend(Interface): :return: A deferred that fires with the list of flags for a blob. :rtype: twisted.internet.defer.Deferred + + :raise BlobNotFound: Raised (asynchronously) when the blob was not + found in the backend. """ def set_flags(user, blob_id, flags, namespace=''): @@ -200,4 +215,8 @@ class IBlobsBackend(Interface): :return: A deferred that fires when the flags have been set. :rtype: twisted.internet.defer.Deferred + + :raise BlobNotFound: Raised (asynchronously) when the blob was not + found in the backend. + :raise InvalidFlag: Raised when one of the flags passed is invalid. """ |