Files
SyncGames/agent/syncgames/errors.py
T
DawnsorrowandCursor 0d6b0b2f80 Initial SyncGames tree: agent, Android, deploy, docs.
Session-gated MinIO save sync with AppImage GUI, CLI edit/session flow, and Gitea release helper.

Co-authored-by: Cursor <[email protected]>
2026-07-14 22:06:36 -05:00

31 lines
552 B
Python

from __future__ import annotations
class SyncGamesError(Exception):
key = "error"
def __init__(self, message: str, *, key: str | None = None) -> None:
super().__init__(message)
if key:
self.key = key
class ConfigError(SyncGamesError):
key = "config_error"
class LeaseHeldError(SyncGamesError):
key = "lease_held"
class StaleWipError(SyncGamesError):
key = "stale_wip"
class StoreError(SyncGamesError):
key = "store_error"
class GameRunningError(SyncGamesError):
key = "game_running"