Skip to content

Commit 4b10db4

Browse files
kxepaliblislin
authored andcommitted
[server] Introduce query server package
- Add `server/exceptions.py` Author: Alexander Shorin <[email protected]> Patched by: Iblis Lin <[email protected]> - Rename `ViewServerException` to `QueryServerException` Reference: djc#268 See Also: djc#276
1 parent d77cdc0 commit 4b10db4

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

couchdb/server/__init__.py

Whitespace-only changes.

couchdb/server/exceptions.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# -*- coding: utf-8 -*-
2+
#
3+
4+
5+
class QueryServerException(Exception):
6+
"""Base query server exception"""
7+
8+
9+
class Error(QueryServerException):
10+
"""Non fatal error which should not terminate query serve"""
11+
12+
13+
class FatalError(QueryServerException):
14+
"""Fatal error which should terminates query server"""
15+
16+
17+
class Forbidden(QueryServerException):
18+
"""Non fatal error which signs access deny for processed operation"""

0 commit comments

Comments
 (0)