| 12 | # we inherit from BaseException here to make sure to not be caught |
| 13 | # at application level |
| 14 | class HaltServer(BaseException): |
| 15 | def __init__(self, reason, exit_status=1): |
| 16 | self.reason = reason |
| 17 | self.exit_status = exit_status |
| 18 | |
| 19 | def __str__(self): |
| 20 | return "<HaltServer %r %d>" % (self.reason, self.exit_status) |
| 21 | |
| 22 | |
| 23 | class ConfigError(Exception): |