2026-08-02 17:10:20 -07:00
|
|
|
"""Errors that must end the container with a useful message."""
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class DscError(Exception):
|
|
|
|
|
"""Base class for failures that stop the client."""
|
|
|
|
|
|
|
|
|
|
|
2026-08-02 17:21:46 -07:00
|
|
|
class ConfigError(DscError):
|
|
|
|
|
"""The container was configured in a way that cannot be acted on."""
|
|
|
|
|
|
|
|
|
|
|
2026-08-02 17:10:20 -07:00
|
|
|
class DaemonError(DscError):
|
|
|
|
|
"""A seaf-cli command failed."""
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class DaemonTimeout(DscError):
|
|
|
|
|
"""The daemon did not reach the expected state in time."""
|
|
|
|
|
|
|
|
|
|
|
2026-08-03 04:58:14 +00:00
|
|
|
class NetworkError(DscError):
|
|
|
|
|
"""A request to the Seafile server failed or exceeded its timeout."""
|
|
|
|
|
|
|
|
|
|
|
2026-08-02 17:10:20 -07:00
|
|
|
class GracefulShutdown(DscError):
|
|
|
|
|
"""SIGTERM or SIGINT was received; stop the daemon and exit cleanly."""
|