2014-08-08 11:24:08 +05:30
|
|
|
|
|
|
|
class ServerError (Exception):
|
|
|
|
""" A custom exception which is raised by the test servers. Often used to
|
|
|
|
handle control flow. """
|
|
|
|
|
2015-04-14 10:36:20 +05:30
|
|
|
def __init__(self, err_message):
|
2014-08-08 11:24:08 +05:30
|
|
|
self.err_message = err_message
|
2015-01-30 21:07:11 +08:00
|
|
|
|
2015-05-11 12:34:05 +02: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 10:36:20 +05:30
|
|
|
|
2015-01-30 21:07:11 +08:00
|
|
|
class AuthError (ServerError):
|
2015-04-14 10:36:20 +05:30
|
|
|
""" A custom exception raised byt he servers when authentication of the
|
|
|
|
request fails. """
|
2015-01-30 21:07:11 +08:00
|
|
|
pass
|