Enum Class ErrorCode.ErrorCategory
- 所有已实现的接口:
Serializable,Comparable<ErrorCode.ErrorCategory>,java.lang.constant.Constable
- 封闭类:
- ErrorCode
错误分类枚举
-
嵌套类概要
从类继承的嵌套类/接口 java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
枚举常量概要
枚举常量枚举常量说明API错误业务逻辑错误客户端错误并发错误配置错误数据错误资源错误安全错误系统错误未知错误 -
方法概要
修饰符和类型方法说明getName()static ErrorCode.ErrorCategoryReturns the enum constant of this class with the specified name.static ErrorCode.ErrorCategory[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
枚举常量详细资料
-
CLIENT
客户端错误 -
API
API错误 -
CONCURRENCY
并发错误 -
CONFIGURATION
配置错误 -
RESOURCE
资源错误 -
DATA
数据错误 -
SECURITY
安全错误 -
BUSINESS
业务逻辑错误 -
SYSTEM
系统错误 -
UNKNOWN
未知错误
-
-
方法详细资料
-
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
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 nameNullPointerException- 如果参数为空值
-
getName
-