cmvr-visual/backend/app/domain/errors.py
zhanghao 88cf14d794 feat: consolidate story studio and editable automatic production
Restructure backend and frontend modules; add story, library, and editor schema migrations.

Support editable automatic production, manual confirmation modes, account and user lifecycle management, compact container scrolling, consistent forms, and per-task result previews.

Update inference and TTS scheduling, deployment guidance, and regression coverage; remove obsolete standalone pages and temporary acceptance artifacts.
2026-11-14 14:07:26 +08:00

8 lines
289 B
Python

"""领域任务错误,不依赖 HTTP、数据库或具体模型。"""
class MediaError(RuntimeError):
def __init__(self, code: str, message: str, retriable: bool = False):
super().__init__(message)
self.code, self.message, self.retriable = code, message, retriable