Class DslParseException
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.DslParseException
- All Implemented Interfaces:
OpenExceptionMeta, Serializable
Thrown when the JSON DSL fails structural or semantic validation.
当 JSON DSL 结构或语义校验失败时抛出。
Covers all BASE-FLOW-DSL-* error codes, including invalid
JSON shape, duplicate step ids, dangling transition references,
unsupported schemaVersion, illegal enum values, and quota
violations (size / depth / count).
覆盖所有 BASE-FLOW-DSL-* 错误码:JSON 结构非法、节点 id 重复、
transitions 引用不存在的节点、schemaVersion 不被支持、
取值非法、配额超限(大小 / 深度 / 数量)等。
- Since:
- JDK 25, opencode-base-flow V1.0.5
- Author:
- Leon Soo
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDslParseException(String errorCode, String message) Creates a new DSL parse exception.DslParseException(String errorCode, String message, Throwable cause) Creates a new DSL parse 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
-
DslParseException
-
DslParseException
Creates a new DSL parse exception with a root cause. 创建带原始异常的 DSL 解析异常。- Parameters:
errorCode- stable error code | 稳定错误码message- human-readable detail message | 人类可读的详细消息cause- underlying cause | 原始异常- Since:
- JDK 25, opencode-base-flow V1.0.5
-