Enum Class AdminErrorCode
- All Implemented Interfaces:
io.github.xezzon.zeroweb.core.error.IErrorCode
,Serializable
,Comparable<AdminErrorCode>
,Constable
public enum AdminErrorCode
extends Enum<AdminErrorCode>
implements io.github.xezzon.zeroweb.core.error.IErrorCode
错误码分配中心
- 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 io.github.xezzon.zeroweb.core.error.IErrorCode
byte
io.github.xezzon.zeroweb.core.error.ErrorSourceType
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
public io.github.xezzon.zeroweb.core.error.ErrorSourceType sourceType()- Specified by:
sourceType
in interfaceio.github.xezzon.zeroweb.core.error.IErrorCode
-
moduleCode
public byte moduleCode()- Specified by:
moduleCode
in interfaceio.github.xezzon.zeroweb.core.error.IErrorCode
-