Enum Class ValidationError.ErrorType

java.lang.Object
java.lang.Enum<ValidationError.ErrorType>
cloud.opencode.base.yml.schema.ValidationError.ErrorType
All Implemented Interfaces:
Serializable, Comparable<ValidationError.ErrorType>, Constable
Enclosing class:
ValidationError

public static enum ValidationError.ErrorType extends Enum<ValidationError.ErrorType>
Error type enumeration for categorizing validation errors. 用于分类验证错误的错误类型枚举。
Since:
JDK 25, opencode-base-yml V1.0.3
Author:
Leon Soo www.LeonSoo.com
  • Enum Constant Details

    • MISSING_REQUIRED

      public static final ValidationError.ErrorType MISSING_REQUIRED
      A required key is missing. 缺少必需的键。
    • TYPE_MISMATCH

      public static final ValidationError.ErrorType TYPE_MISMATCH
      The value type does not match the expected type. 值类型与预期类型不匹配。
    • OUT_OF_RANGE

      public static final ValidationError.ErrorType OUT_OF_RANGE
      The value is outside the allowed range. 值超出允许范围。
    • PATTERN_MISMATCH

      public static final ValidationError.ErrorType PATTERN_MISMATCH
      The value does not match the required pattern. 值不匹配要求的模式。
    • CUSTOM_RULE_FAILED

      public static final ValidationError.ErrorType CUSTOM_RULE_FAILED
      A custom validation rule failed. 自定义验证规则失败。
  • Method Details

    • values

      public static ValidationError.ErrorType[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static ValidationError.ErrorType valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null