Class TaskNotFoundException

All Implemented Interfaces:
OpenExceptionMeta, Serializable

public class TaskNotFoundException extends FlowException
Thrown when a task lookup by id returns no row. 按 id 查找任务无结果时抛出。

Maps to FlowErrorCode.TASK_NOT_FOUND (BASE-FLOW-TASK-001). Also raised by the mandatory ownership pre-check (see design v4 §8.0.1) when the supplied taskId does not exist.

对应错误码 FlowErrorCode.TASK_NOT_FOUND (BASE-FLOW-TASK-001)。当传入的 taskId 不存在时, 强制所有权前置校验(见方案 v4 §8.0.1)也会抛出本异常。

Since:
JDK 25, opencode-base-flow V1.0.5
Author:
Leon Soo
See Also:
  • Constructor Details

    • TaskNotFoundException

      public TaskNotFoundException(String errorCode, String message)
      Creates a new task not found exception. 创建任务未找到异常。
      Parameters:
      errorCode - stable error code | 稳定错误码
      message - human-readable detail message | 人类可读的详细消息
      Since:
      JDK 25, opencode-base-flow V1.0.5
    • TaskNotFoundException

      public TaskNotFoundException(String errorCode, String message, Throwable cause)
      Creates a new task not found exception with a root cause. 创建带原始异常的任务未找到异常。
      Parameters:
      errorCode - stable error code | 稳定错误码
      message - human-readable detail message | 人类可读的详细消息
      cause - underlying cause | 原始异常
      Since:
      JDK 25, opencode-base-flow V1.0.5