Enum Class Status.CODE
- All Implemented Interfaces:
Status,Serializable,Comparable<Status.CODE>,Constable
- Enclosing interface:
Status
内部预设的状态码
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>Nested classes/interfaces inherited from interface cn.dinodev.spring.commons.response.Status
Status.CODE -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription成功状态码 -
Method Summary
Modifier and TypeMethodDescriptionintgetCode()获取状态码getMsg()获取错误消息static Status.CODEReturns the enum constant of this class with the specified name.static Status.CODE[]values()Returns an array containing the constants of this enum class, in the order they are declared.替换消息替换消息信息
-
Enum Constant Details
-
OK
成功状态码 -
ERROR
-
FAIL_EXISTS
-
FAIL_LOGIN
-
FAIL_LOGIN_DENNY
-
FAIL_NOT_LOGIN
-
FAIL_INVALID_PASSWORD
-
FAIL_INVALID_PHONE
-
FAIL_INVALID_CAPTCHA
-
FAIL_INVALID_AUTH_TOKEN
-
FAIL_TOKEN_LOGIN_ANOTHER_DEVICE
-
FAIL_INVALID_REFRESH_TOKEN
-
WARN_PARTIAL_SUCCESS
-
WARN_PERFORMANCE_ISSUE
-
FAIL_INVALID_PARAM
-
FAIL_NO_PERMISSION
-
FAIL_AUTH
-
FAIL_NOT_FOUND
-
FAIL_VALIDATION
-
FAIL_OPERATION
-
FAIL_INVALID_STAUS
-
FAIL_REQUEST_TIMEOUT
-
FAIL_TENANT_NOT_EXIST
-
FAIL_USER_NOT_EXIST
-
FAIL_EXCEPTION
-
FAIL_PERSISTENT_EXCEPTION
-
FAIL_QUERY_EXCEPTION
-
FAIL_SERVICE_UNAVAILABLE
-
FAIL_IO_EXCEPTION
-
CACHE_EMPTY
-
-
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
-
getCode
public int getCode()Description copied from interface:Status获取状态码 -
getMsg
Description copied from interface:Status获取错误消息 -
withMsg
Description copied from interface:Status替换消息 -
withMsg
Description copied from interface:Status替换消息信息
-