Files
docker-seafile-client/dsc/errors.py
T

17 lines
425 B
Python
Raw Normal View History

"""Errors that must end the container with a useful message."""
class DscError(Exception):
"""Base class for failures that stop the client."""
class DaemonError(DscError):
"""A seaf-cli command failed."""
class DaemonTimeout(DscError):
"""The daemon did not reach the expected state in time."""
class GracefulShutdown(DscError):
"""SIGTERM or SIGINT was received; stop the daemon and exit cleanly."""