Enum Class的使用
com.alibaba.nacos.core.exception.ErrorCode
使用ErrorCode的程序包
-
com.alibaba.nacos.core.exception中ErrorCode的使用
修饰符和类型方法说明static ErrorCodeReturns the enum constant of this class with the specified name.static ErrorCode[]ErrorCode.values()Returns an array containing the constants of this enum class, in the order they are declared.参数类型为ErrorCode的com.alibaba.nacos.core.exception中的构造器限定符构造器说明KvStorageException(ErrorCode code, String errMsg)KvStorageException(ErrorCode errCode, String errMsg, Throwable throwable)KvStorageException(ErrorCode errCode, Throwable throwable)