summaryrefslogtreecommitdiff
path: root/src/couch/exceptions.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/couch/exceptions.py')
-rw-r--r--src/couch/exceptions.py38
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