diff options
author | Kristofer Hallin <kristofer@sunet.se> | 2022-04-07 14:12:35 +0200 |
---|---|---|
committer | Kristofer Hallin <kristofer@sunet.se> | 2022-04-07 14:12:35 +0200 |
commit | 208089fa95e63d6e29e7a1d86726bfec804de211 (patch) | |
tree | d5ed8e7de790940ade6b46dcb48e126d7357733d /src/db/couch/exceptions.py | |
parent | 9d72acbb816c6040b608c63f18b8dbb169ceb2c3 (diff) |
Moved everything database related to db/.
Diffstat (limited to 'src/db/couch/exceptions.py')
-rw-r--r-- | src/db/couch/exceptions.py | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/src/db/couch/exceptions.py b/src/db/couch/exceptions.py new file mode 100644 index 0000000..d7e037b --- /dev/null +++ b/src/db/couch/exceptions.py @@ -0,0 +1,38 @@ +# -*- coding: utf-8 -*- +# Based on py-couchdb (https://github.com/histrio/py-couchdb) + + +class Error(Exception): + pass + + +class UnexpectedError(Error): + pass + + +class FeedReaderExited(Error): + pass + + +class ApiError(Error): + pass + + +class GenericError(ApiError): + pass + + +class Conflict(ApiError): + pass + + +class NotFound(ApiError): + pass + + +class BadRequest(ApiError): + pass + + +class AuthenticationFailed(ApiError): + pass |