Skip to content

Commit 8d9e173

Browse files
committed
Add new exception types
1 parent d53a331 commit 8d9e173

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

consulate/exceptions.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,14 @@ class ConsulateException(Exception):
88
"""Base Consul exception"""
99

1010

11+
class RequestError(ConsulateException):
12+
"""There was an error making the request to the consul server"""
13+
14+
15+
class ClientError(ConsulateException):
16+
"""There was an error in the request that was made to consul"""
17+
18+
1119
class ServerError(ConsulateException):
1220
"""An internal Consul server error occurred"""
1321

0 commit comments

Comments
 (0)