feat/ 导出开发容器内的数据用于评估
This commit is contained in:
13
api/app/features/evaluation/errors.py
Normal file
13
api/app/features/evaluation/errors.py
Normal file
@@ -0,0 +1,13 @@
|
||||
"""评测 API 领域异常(由 router 映射为 HTTP 状态码)。"""
|
||||
|
||||
|
||||
class EvaluationNotFoundError(Exception):
|
||||
def __init__(self, detail: str = "not found") -> None:
|
||||
self.detail = detail
|
||||
super().__init__(detail)
|
||||
|
||||
|
||||
class EvaluationBadRequestError(Exception):
|
||||
def __init__(self, detail: str) -> None:
|
||||
self.detail = detail
|
||||
super().__init__(detail)
|
||||
Reference in New Issue
Block a user