diff options
author | Victor Shyba <victor1984@riseup.net> | 2017-10-25 12:49:06 -0300 |
---|---|---|
committer | Victor Shyba <victor1984@riseup.net> | 2017-10-27 16:01:38 -0300 |
commit | 83e4e5e65aca6307923d92a7915f3851f1206501 (patch) | |
tree | 27bc63ae5382966ea9dec05912ce11c085a92cd0 /src/leap/soledad/client/_db/blobs/errors.py | |
parent | 4a852d9d78f715c7f51327f13275cd72e77e9907 (diff) |
[refactor] split blobs into modules
So we can have manager, sync, sql and errors in its own places.
--Related: #8970
Diffstat (limited to 'src/leap/soledad/client/_db/blobs/errors.py')
-rw-r--r-- | src/leap/soledad/client/_db/blobs/errors.py | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/src/leap/soledad/client/_db/blobs/errors.py b/src/leap/soledad/client/_db/blobs/errors.py new file mode 100644 index 00000000..90de9553 --- /dev/null +++ b/src/leap/soledad/client/_db/blobs/errors.py @@ -0,0 +1,40 @@ +# -*- coding: utf-8 -*- +# errors.py +# Copyright (C) 2017 LEAP +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. +""" +Blobs exceptions +""" +from leap.soledad.common.errors import SoledadError + + +class BlobAlreadyExistsError(SoledadError): + pass + + +class BlobNotFoundError(SoledadError): + pass + + +class InvalidFlagsError(SoledadError): + pass + + +class RetriableTransferError(Exception): + pass + + +class MaximumRetriesError(Exception): + pass |