Class DslParseException

All Implemented Interfaces:
OpenExceptionMeta, Serializable

public class DslParseException extends FlowException
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 Details

    • DslParseException

      public DslParseException(String errorCode, String message)
      Creates a new DSL parse exception. 创建 DSL 解析异常。
      Parameters:
      errorCode - stable error code | 稳定错误码
      message - human-readable detail message | 人类可读的详细消息
      Since:
      JDK 25, opencode-base-flow V1.0.5
    • DslParseException

      public DslParseException(String errorCode, String message, Throwable cause)
      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