Enum Class ErrorType

java.lang.Object
java.lang.Enum<ErrorType>
com.elitesland.ystdms.data.api.enums.ErrorType
All Implemented Interfaces:
Serializable, Comparable<ErrorType>, Constable

public enum ErrorType extends Enum<ErrorType>
错误类型枚举
  • Enum Constant Details

    • REQUIRED

      public static final ErrorType REQUIRED
    • DATA_TYPE

      public static final ErrorType DATA_TYPE
    • DATA_FORMAT

      public static final ErrorType DATA_FORMAT
    • LENGTH

      public static final ErrorType LENGTH
    • RANGE

      public static final ErrorType RANGE
    • REGEX

      public static final ErrorType REGEX
    • ENUM

      public static final ErrorType ENUM
    • DICT

      public static final ErrorType DICT
    • DUPLICATE

      public static final ErrorType DUPLICATE
    • NOT_EXIST

      public static final ErrorType NOT_EXIST
    • INVALID_STATUS

      public static final ErrorType INVALID_STATUS
    • BUSINESS_RULE

      public static final ErrorType BUSINESS_RULE
    • SYSTEM_ERROR

      public static final ErrorType SYSTEM_ERROR
    • TIMEOUT

      public static final ErrorType TIMEOUT
    • NETWORK_ERROR

      public static final ErrorType NETWORK_ERROR
  • Method Details

    • values

      public static 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 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
    • getLabel

      public String getLabel()
    • getDescription

      public String getDescription()