diff options
author | Kristofer Hallin <kristofer@sunet.se> | 2021-10-01 10:21:54 +0200 |
---|---|---|
committer | Kristofer Hallin <kristofer@sunet.se> | 2021-10-01 10:21:54 +0200 |
commit | cb47680777b3fd3bcd955f9e81ddf45c9b69ecfa (patch) | |
tree | 1fa8dfae5e9f39c634498f2c60b56a99558cae9a /src/couch/exceptions.py | |
parent | 0398e77a809abcaf78c6f7d3e6064a5bee50be23 (diff) |
* Use py-couchdb.
* Other minor fixes and tweaks.
Diffstat (limited to 'src/couch/exceptions.py')
-rw-r--r-- | src/couch/exceptions.py | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/src/couch/exceptions.py b/src/couch/exceptions.py new file mode 100644 index 0000000..d7e037b --- /dev/null +++ b/src/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 |