Debian Codegraph @

testenv/exc/server_error.py

raw
1
2 class ServerError (Exception):
3 """ A custom exception which is raised by the test servers. Often used to
4 handle control flow. """
5
6 def __init__(self, err_message):
7 self.err_message = err_message
8
9 class NoBodyServerError (Exception):
10 """ A custom exception which is raised by the test servers.
11 Used if no body should be sent in response. """
12
13 def __init__(self, err_message):
14 self.err_message = err_message
15
16 class AuthError (ServerError):
17 """ A custom exception raised byt he servers when authentication of the
18 request fails. """
19 pass