Enum Class AdminErrorCode
- All Implemented Interfaces:
IErrorCode
,Serializable
,Comparable<AdminErrorCode>
,Constable
错误码分配中心
- Author:
- xezzon
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants -
Field Summary
Fields inherited from interface io.github.xezzon.zeroweb.core.error.IErrorCode
I18N_BASENAME
-
Method Summary
Modifier and TypeMethodDescriptionstatic IErrorCode
byte
模块编码 0 为公共模块 ZeroWeb 的模块编码从 -1~-128 分配 1~127 由使用者分配static AdminErrorCode
Returns the enum constant of this class with the specified name.static AdminErrorCode[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
Methods inherited from interface io.github.xezzon.zeroweb.core.error.IErrorCode
code, name, serialNumber
-
Enum Constant Details
-
INVALID_PASSWORD
用户名或密码错误
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-
mapping
-
sourceType
- Specified by:
sourceType
in interfaceIErrorCode
- Returns:
- 错误来源类型
-
moduleCode
public byte moduleCode()Description copied from interface:IErrorCode
模块编码 0 为公共模块 ZeroWeb 的模块编码从 -1~-128 分配 1~127 由使用者分配- Specified by:
moduleCode
in interfaceIErrorCode
- Returns:
- 模块编码
-