Nested Class Summary
Nested classes/interfaces inherited from interface cn.dinodev.spring.commons.response.Status
Status.CODE
Enum Constant Summary
Enum Constants
Method Summary
All Methods Static Methods Instance Methods Concrete Methods
int
Returns the enum constant of this class with the specified name.
Returns an array containing the constants of this enum class, in
the order they are declared.
Methods inherited from class java.lang.Enum
clone , compareTo , describeConstable , equals , finalize , getDeclaringClass , hashCode , name , ordinal , toString , valueOf
Enum Constant Details
FAIL_INVALID_AUTH_TOKEN
public static final Status.CODE FAIL_INVALID_AUTH_TOKEN
FAIL_TOKEN_LOGIN_ANOTHER_DEVICE
public static final Status.CODE FAIL_TOKEN_LOGIN_ANOTHER_DEVICE
FAIL_INVALID_REFRESH_TOKEN
public static final Status.CODE FAIL_INVALID_REFRESH_TOKEN
FAIL_PERSISTENT_EXCEPTION
public static final Status.CODE FAIL_PERSISTENT_EXCEPTION
FAIL_SERVICE_UNAVAILABLE
public static final Status.CODE FAIL_SERVICE_UNAVAILABLE
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 name
NullPointerException - if the argument is null
getCode
public int getCode ()
Description copied from interface: Status
获取状态码
Specified by:
getCode in interface Status
Returns:
getMsg
Description copied from interface: Status
获取错误消息
Specified by:
getMsg in interface Status
Returns:
withMsg
Description copied from interface: Status
替换消息
Specified by:
withMsg in interface Status
Parameters:
msg - 消息信息
Returns:
withMsg
Description copied from interface: Status
替换消息信息
Specified by:
withMsg in interface Status
Parameters:
msg - 消息模板,'{}'为参数占位符,例如:"user {} not found"
args - 消息模板的参数
Returns: