refactor: improve PDF extraction, error handling, and proxy configuration

This commit is contained in:
2026-06-30 10:39:27 +08:00
parent 1ccac1f29a
commit a2e3dc398b
7 changed files with 438 additions and 71 deletions
-8
View File
@@ -23,13 +23,5 @@ class ValidationError(AppError):
"""请求参数校验失败(400)。"""
class ExternalAPIError(AppError):
"""外部 API 调用失败(502)。"""
class PdfProcessError(AppError):
"""PDF 处理错误(500)。"""
class ConflictError(AppError):
"""资源冲突(409)— 如锁冲突、并发任务冲突。"""