Files
DDSRem 2de976f6b3 Merge pull request #7050 from DDSRem-Dev/codex-comment-migration
docs: 统一全项目中文注释和结构化契约说明
2026-10-17 19:26:29 +08:00

18 lines
579 B
Python
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
"""
TMDB 业务异常的兼容导出与连接失败异常类型。
"""
# TMDbException 是跨层异常契约,定义在 schemas 层,供链层与API层捕获;
# 模块内部沿用原导入路径,保持类身份一致
from app.schemas.exception import TMDbException as TMDbException
class TMDbConnectionError(TMDbException):
"""
表示请求未取得响应的 TMDB 连接异常。
继承 TMDbException,允许调用方专门区分传输失败并决定是否重试。
JSON 解码和业务响应失败仍由普通 TMDbException 表示。
"""
pass