Daryl Walleck | 1465d61 | 2011-11-02 02:22:15 -0500 | [diff] [blame] | 1 | class TimeoutException(Exception): |
Daryl Walleck | e5b83d4 | 2011-11-10 14:39:02 -0600 | [diff] [blame] | 2 | """Exception on timeout""" |
Daryl Walleck | 1465d61 | 2011-11-02 02:22:15 -0500 | [diff] [blame] | 3 | def __repr__(self): |
| 4 | return "Request timed out" |
| 5 | |
| 6 | |
| 7 | class BuildErrorException(Exception): |
Daryl Walleck | e5b83d4 | 2011-11-10 14:39:02 -0600 | [diff] [blame] | 8 | """Exception on server build""" |
Daryl Walleck | 1465d61 | 2011-11-02 02:22:15 -0500 | [diff] [blame] | 9 | def __repr__(self): |
| 10 | return "Server failed into error status" |
Daryl Walleck | adea1fa | 2011-11-15 18:36:39 -0600 | [diff] [blame] | 11 | |
| 12 | |
| 13 | class BadRequest(Exception): |
| 14 | def __init__(self, message): |
| 15 | self.message = message |
| 16 | |
| 17 | def __str__(self): |
| 18 | return repr(self.message) |