2014-08-08 13:54:08 +08:00
|
|
|
|
|
|
|
class ServerError (Exception):
|
|
|
|
""" A custom exception which is raised by the test servers. Often used to
|
|
|
|
handle control flow. """
|
|
|
|
|
2015-04-14 13:06:20 +08:00
|
|
|
def __init__(self, err_message):
|
2014-08-08 13:54:08 +08:00
|
|
|
self.err_message = err_message
|
2015-01-30 21:07:11 +08:00
|
|
|
|
2015-05-11 18:34:05 +08:00
|
|
|
class NoBodyServerError (Exception):
|
|
|
|
""" A custom exception which is raised by the test servers.
|
|
|
|
Used if no body should be sent in response. """
|
|
|
|
|
|
|
|
def __init__(self, err_message):
|
|
|
|
self.err_message = err_message
|
2015-04-14 13:06:20 +08:00
|
|
|
|
2015-01-30 21:07:11 +08:00
|
|
|
class AuthError (ServerError):
|
2015-04-14 13:06:20 +08:00
|
|
|
""" A custom exception raised byt he servers when authentication of the
|
|
|
|
request fails. """
|
2015-01-30 21:07:11 +08:00
|
|
|
pass
|