mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
17 lines
451 B
Python
17 lines
451 B
Python
# -*- coding: utf-8 -
|
|
#
|
|
# This file is part of gunicorn released under the MIT license.
|
|
# See the NOTICE for more information.
|
|
|
|
|
|
class HaltServer(BaseException):
|
|
def __init__(self, reason, exit_status=1):
|
|
self.reason = reason
|
|
self.exit_status = exit_status
|
|
|
|
def __str__(self):
|
|
return "<HaltServer %r %d>" % (self.reason, self.exit_status)
|
|
|
|
class ConfigError(BaseException):
|
|
""" Exception raised on config error """
|