tempest/storm/exceptions.py
Daryl Walleck adea1fa839 Added negative tests for servers
Change-Id: I6285045f023881f66e4bb42a6a188c68796ea5f5
2011-11-15 18:36:39 -06:00

19 lines
427 B
Python

class TimeoutException(Exception):
"""Exception on timeout"""
def __repr__(self):
return "Request timed out"
class BuildErrorException(Exception):
"""Exception on server build"""
def __repr__(self):
return "Server failed into error status"
class BadRequest(Exception):
def __init__(self, message):
self.message = message
def __str__(self):
return repr(self.message)