Enum Class ErrorCode

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

public enum ErrorCode extends Enum<ErrorCode>
Core module code starts with 40001.
作者:
liaochuntao
  • 枚举常量详细资料

    • UnKnowError

      public static final ErrorCode UnKnowError
      unknow error.
    • KVStorageWriteError

      public static final ErrorCode KVStorageWriteError
      KVStorage write error.
    • KVStorageReadError

      public static final ErrorCode KVStorageReadError
      KVStorage read error.
    • KVStorageDeleteError

      public static final ErrorCode KVStorageDeleteError
      KVStorage delete error.
    • KVStorageSnapshotSaveError

      public static final ErrorCode KVStorageSnapshotSaveError
      KVStorage snapshot save error.
    • KVStorageSnapshotLoadError

      public static final ErrorCode KVStorageSnapshotLoadError
      KVStorage snapshot load error.
    • KVStorageResetError

      public static final ErrorCode KVStorageResetError
      KVStorage reset error.
    • KVStorageCreateError

      public static final ErrorCode KVStorageCreateError
      KVStorage create error.
    • KVStorageBatchWriteError

      public static final ErrorCode KVStorageBatchWriteError
      KVStorage write error.
    • IOMakeDirError

      public static final ErrorCode IOMakeDirError
      mkdir error.
    • IOCopyDirError

      public static final ErrorCode IOCopyDirError
      copy directory has error.
    • ProtoSubmitError

      public static final ErrorCode ProtoSubmitError
      protocol write error.
    • ProtoReadError

      public static final ErrorCode ProtoReadError
      protocol read error.
  • 方法详细资料

    • 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 int getCode()