class ServerError (Exception): """ A custom exception which is raised by the test servers. Often used to handle control flow. """ def __init__ (self, err_message): self.err_message = err_message class AuthError (ServerError): pass