summaryrefslogtreecommitdiff
path: root/src/db/couch/exceptions.py
diff options
context:
space:
mode:
authorKristofer Hallin <kristofer@sunet.se>2022-01-04 22:12:26 +0100
committerKristofer Hallin <kristofer@sunet.se>2022-01-04 22:12:26 +0100
commit2ea8d3a44d89934f7b22ddb932c76322601028a5 (patch)
tree84d210f850ea745f787cff403fcc553767b5c38c /src/db/couch/exceptions.py
parenta3b5cde94981b9a98d367004b4c513c81e5870e4 (diff)
Use FastAPI routers and split things to multiple files.
Diffstat (limited to 'src/db/couch/exceptions.py')
-rw-r--r--src/db/couch/exceptions.py38
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