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