MCPcopy
hub / github.com/benoitc/gunicorn / HaltServer

Class HaltServer

gunicorn/errors.py:14–20  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12# we inherit from BaseException here to make sure to not be caught
13# at application level
14class 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
23class ConfigError(Exception):

Callers 1

reap_workersMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected