Class ConcurrentFlowModificationException
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.ConcurrentFlowModificationException
- All Implemented Interfaces:
OpenExceptionMeta, Serializable
Thrown on optimistic-lock version conflict during a concurrent update.
并发更新中乐观锁版本冲突时抛出。
The engine attaches a version column to all mutable rows and
issues every UPDATE with a WHERE version = ? predicate.
A zero-affected-rows outcome is interpreted as concurrent modification
and surfaced as this exception with FlowErrorCode.CONC_VERSION_CONFLICT
(BASE-FLOW-CONC-001). Callers should retry from a fresh read.
引擎为所有可变行附带 version 列,每次 UPDATE 都带
WHERE version = ? 谓词。受影响行数为 0 被视为并发修改,抛出
本异常并携带 FlowErrorCode.CONC_VERSION_CONFLICT
(BASE-FLOW-CONC-001)。调用方应重新读取后重试。
- Since:
- JDK 25, opencode-base-flow V1.0.5
- Author:
- Leon Soo
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionConcurrentFlowModificationException(String errorCode, String message) Creates a new concurrent modification exception.ConcurrentFlowModificationException(String errorCode, String message, Throwable cause) Creates a new concurrent modification 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
-
ConcurrentFlowModificationException
-
ConcurrentFlowModificationException
Creates a new concurrent modification 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
-