From 208089fa95e63d6e29e7a1d86726bfec804de211 Mon Sep 17 00:00:00 2001 From: Kristofer Hallin Date: Thu, 7 Apr 2022 14:12:35 +0200 Subject: Moved everything database related to db/. --- src/db/couch/exceptions.py | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 src/db/couch/exceptions.py (limited to 'src/db/couch/exceptions.py') 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 -- cgit v1.1