Class TaskNotFoundException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
cloud.opencode.base.core.exception.OpenException
cloud.opencode.base.flow.exception.FlowException
cloud.opencode.base.flow.exception.TaskNotFoundException
- All Implemented Interfaces:
OpenExceptionMeta, Serializable
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 Summary
ConstructorsConstructorDescriptionTaskNotFoundException(String errorCode, String message) Creates a new task not found exception.TaskNotFoundException(String errorCode, String message, Throwable cause) Creates a new task not found exception with a root cause. -
Method Summary
Methods inherited from class FlowException
getErrorCodeMethods inherited from class OpenException
getComponent, getMessage, getRawMessageMethods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface OpenExceptionMeta
getMetaPrefix
-
Constructor Details
-
TaskNotFoundException
-
TaskNotFoundException
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
-