commit | adea1fa8394cc5f890f7eeacb074acde73243c64 | [log] [tgz] |
---|---|---|
author | Daryl Walleck <daryl.walleck@rackspace.com> | Tue Nov 15 18:36:39 2011 -0600 |
committer | Daryl Walleck <daryl.walleck@rackspace.com> | Tue Nov 15 18:36:39 2011 -0600 |
tree | e5e32a58c5a6df459e8f0caa87be5383c5b937d3 | |
parent | 8a84d2efc453c9c1c5210339c4b1724736a48230 [diff] [blame] |
Added negative tests for servers Change-Id: I6285045f023881f66e4bb42a6a188c68796ea5f5
diff --git a/storm/exceptions.py b/storm/exceptions.py index c75544c..93ffa91 100644 --- a/storm/exceptions.py +++ b/storm/exceptions.py
@@ -8,3 +8,11 @@ """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)