Enum Class ErrorCode

java.lang.Object
java.lang.Enum<ErrorCode>
com.alibaba.nacos.api.model.v2.ErrorCode
所有已实现的接口:
Serializable, Comparable<ErrorCode>, java.lang.constant.Constable

public enum ErrorCode extends Enum<ErrorCode>
Response Error Code.
作者:
dongyafei
  • 枚举常量详细资料

    • SUCCESS

      public static final ErrorCode SUCCESS
      success.
    • PARAMETER_MISSING

      public static final ErrorCode PARAMETER_MISSING
      parameter missing.
    • ACCESS_DENIED

      public static final ErrorCode ACCESS_DENIED
      access denied.
    • DATA_ACCESS_ERROR

      public static final ErrorCode DATA_ACCESS_ERROR
      data access error.
    • TENANT_PARAM_ERROR

      public static final ErrorCode TENANT_PARAM_ERROR
      'tenant' parameter error.
    • PARAMETER_VALIDATE_ERROR

      public static final ErrorCode PARAMETER_VALIDATE_ERROR
      parameter validate error.
    • MEDIA_TYPE_ERROR

      public static final ErrorCode MEDIA_TYPE_ERROR
      MediaType Error.
    • RESOURCE_NOT_FOUND

      public static final ErrorCode RESOURCE_NOT_FOUND
      resource not found.
    • RESOURCE_CONFLICT

      public static final ErrorCode RESOURCE_CONFLICT
      resource conflict.
    • CONFIG_LISTENER_IS_NULL

      public static final ErrorCode CONFIG_LISTENER_IS_NULL
      config listener is null.
    • CONFIG_LISTENER_ERROR

      public static final ErrorCode CONFIG_LISTENER_ERROR
      config listener error.
    • INVALID_DATA_ID

      public static final ErrorCode INVALID_DATA_ID
      invalid dataId.
    • PARAMETER_MISMATCH

      public static final ErrorCode PARAMETER_MISMATCH
      parameter mismatch.
    • CONFIG_GRAY_OVER_MAX_VERSION_COUNT

      public static final ErrorCode CONFIG_GRAY_OVER_MAX_VERSION_COUNT
      config gray request error.
    • CONFIG_GRAY_RULE_FORMAT_INVALID

      public static final ErrorCode CONFIG_GRAY_RULE_FORMAT_INVALID
      config gray tag v2 rule format invalid.
    • CONFIG_GRAY_VERSION_INVALID

      public static final ErrorCode CONFIG_GRAY_VERSION_INVALID
      config gray tag v2 rule version invalid.
    • CONFIG_GRAY_NAME_UNRECOGNIZED_ERROR

      public static final ErrorCode CONFIG_GRAY_NAME_UNRECOGNIZED_ERROR
      config gray request error.
    • OVER_CLUSTER_QUOTA

      public static final ErrorCode OVER_CLUSTER_QUOTA
      reach cluster quota.
    • OVER_GROUP_QUOTA

      public static final ErrorCode OVER_GROUP_QUOTA
      reach group quota.
    • OVER_TENANT_QUOTA

      public static final ErrorCode OVER_TENANT_QUOTA
      reach tenant quota.
    • OVER_MAX_SIZE

      public static final ErrorCode OVER_MAX_SIZE
      over max content size.
    • SERVICE_NAME_ERROR

      public static final ErrorCode SERVICE_NAME_ERROR
      service name error.
    • WEIGHT_ERROR

      public static final ErrorCode WEIGHT_ERROR
      weight error.
    • INSTANCE_METADATA_ERROR

      public static final ErrorCode INSTANCE_METADATA_ERROR
      instance metadata error.
    • INSTANCE_NOT_FOUND

      public static final ErrorCode INSTANCE_NOT_FOUND
      instance not found.
    • INSTANCE_ERROR

      public static final ErrorCode INSTANCE_ERROR
      instance error.
    • SERVICE_METADATA_ERROR

      public static final ErrorCode SERVICE_METADATA_ERROR
      service metadata error.
    • SELECTOR_ERROR

      public static final ErrorCode SELECTOR_ERROR
      selector error.
    • SERVICE_ALREADY_EXIST

      public static final ErrorCode SERVICE_ALREADY_EXIST
      service already exist.
    • SERVICE_NOT_EXIST

      public static final ErrorCode SERVICE_NOT_EXIST
      service not exist.
    • SERVICE_DELETE_FAILURE

      public static final ErrorCode SERVICE_DELETE_FAILURE
      service delete failure.
    • HEALTHY_PARAM_MISS

      public static final ErrorCode HEALTHY_PARAM_MISS
      healthy param miss.
    • HEALTH_CHECK_STILL_RUNNING

      public static final ErrorCode HEALTH_CHECK_STILL_RUNNING
      health check still running.
    • ILLEGAL_NAMESPACE

      public static final ErrorCode ILLEGAL_NAMESPACE
      illegal namespace.
    • NAMESPACE_NOT_EXIST

      public static final ErrorCode NAMESPACE_NOT_EXIST
      namespace not exist.
    • NAMESPACE_ALREADY_EXIST

      public static final ErrorCode NAMESPACE_ALREADY_EXIST
      namespace already exist.
    • ILLEGAL_STATE

      public static final ErrorCode ILLEGAL_STATE
      illegal state.
    • NODE_INFO_ERROR

      public static final ErrorCode NODE_INFO_ERROR
      node info error.
    • NODE_DOWN_FAILURE

      public static final ErrorCode NODE_DOWN_FAILURE
      node down failure.
    • SERVER_ERROR

      public static final ErrorCode SERVER_ERROR
      server error.
    • API_DEPRECATED

      public static final ErrorCode API_DEPRECATED
      API will be deprecated.
    • METADATA_ILLEGAL

      public static final ErrorCode METADATA_ILLEGAL
      Config use 100001 ~ 100999.
    • DATA_VALIDATION_FAILED

      public static final ErrorCode DATA_VALIDATION_FAILED
    • PARSING_DATA_FAILED

      public static final ErrorCode PARSING_DATA_FAILED
    • DATA_EMPTY

      public static final ErrorCode DATA_EMPTY
    • NO_SELECTED_CONFIG

      public static final ErrorCode NO_SELECTED_CONFIG
    • FUZZY_WATCH_PATTERN_OVER_LIMIT

      public static final ErrorCode FUZZY_WATCH_PATTERN_OVER_LIMIT
    • FUZZY_WATCH_PATTERN_MATCH_COUNT_OVER_LIMIT

      public static final ErrorCode FUZZY_WATCH_PATTERN_MATCH_COUNT_OVER_LIMIT
  • 方法详细资料

    • values

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

      public static ErrorCode 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.)
      参数:
      name - 要返回的枚举常量的名称。
      返回:
      返回带有指定名称的枚举常量
      抛出:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - 如果参数为空值
    • getCode

      public Integer getCode()
    • getMsg

      public String getMsg()
    • getErrorCode

      public static ErrorCode getErrorCode(String name)