mirror of
https://github.com/docker/compose.git
synced 2025-11-05 06:04:35 +01:00
32 lines
781 B
Python
32 lines
781 B
Python
|
|
|
|
class OperationFailedError(Exception):
|
|
def __init__(self, reason):
|
|
self.msg = reason
|
|
|
|
|
|
class StreamParseError(RuntimeError):
|
|
def __init__(self, reason):
|
|
self.msg = reason
|
|
|
|
|
|
class HealthCheckException(Exception):
|
|
def __init__(self, reason):
|
|
self.msg = reason
|
|
|
|
|
|
class HealthCheckFailed(HealthCheckException):
|
|
def __init__(self, container_id):
|
|
super(HealthCheckFailed, self).__init__(
|
|
'Container "{}" is unhealthy.'.format(container_id)
|
|
)
|
|
|
|
|
|
class NoHealthCheckConfigured(HealthCheckException):
|
|
def __init__(self, service_name):
|
|
super(NoHealthCheckConfigured, self).__init__(
|
|
'Service "{}" is missing a healthcheck configuration'.format(
|
|
service_name
|
|
)
|
|
)
|