mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-09-05 07:27:15 +08:00
refactor: 收口 V3 分层架构与插件兼容边界
This commit is contained in:
@@ -6,6 +6,18 @@ from typing import Any
|
||||
from app.foundation.reflection import ObjectUtils
|
||||
|
||||
|
||||
class PluginRuntimeError(Exception):
|
||||
"""插件运行时调用失败的基础异常。"""
|
||||
|
||||
|
||||
class PluginNotFoundError(PluginRuntimeError):
|
||||
"""目标插件未加载。"""
|
||||
|
||||
|
||||
class PluginDashboardError(PluginRuntimeError):
|
||||
"""插件仪表板返回值不符合宿主契约。"""
|
||||
|
||||
|
||||
@dataclass(frozen=True)
|
||||
class PluginHookContract:
|
||||
"""描述宿主识别一个插件钩子时必须保持的运行语义。"""
|
||||
|
||||
Reference in New Issue
Block a user