errors.py 411 B

1234567891011121314151617
  1. """Executor 模块异常。"""
  2. class ExecutorError(Exception):
  3. """任务提交、调度或 Agent 调用失败。"""
  4. class TaskNotFoundError(ExecutorError):
  5. """未知 task_id。"""
  6. def __init__(self, task_id: str) -> None:
  7. self.task_id = task_id
  8. super().__init__(f"任务不存在: {task_id}")
  9. class TraceNotReadyError(ExecutorError):
  10. """Trace 在 Agent 侧不可用。"""