public enum RspDataCodeType extends Enum<RspDataCodeType>
| 枚举常量和说明 |
|---|
ComErr
通用错误
|
InternalError
Internal error
|
InValidData
数据错误.
|
MaxDefCode
默认最大Code值,自定义 Code 需要大于该值
|
NoAccessExp |
NoDeviceExp |
NoFound
No found
|
NoLimit
无操作权限.
|
None
None base rst code itemType.
|
NoToken
No token
|
Suc
成功值
|
TokenError
authtoken error
|
TokenExp
authtoken error
|
TokenUnknown
token 错误(未知错误).
|
| 限定符和类型 | 方法和说明 |
|---|---|
static RspDataCodeType |
getByCode(Integer code)
Gets by code.
|
Integer |
getCode()
Gets code.
|
String |
getMsg()
Gets msg.
|
void |
setCode(Integer code)
Sets code.
|
void |
setMsg(String msg)
Sets msg.
|
static RspDataCodeType |
valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static RspDataCodeType[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final RspDataCodeType None
public static final RspDataCodeType Suc
public static final RspDataCodeType NoFound
public static final RspDataCodeType InternalError
public static final RspDataCodeType ComErr
public static final RspDataCodeType TokenUnknown
public static final RspDataCodeType NoToken
public static final RspDataCodeType TokenError
public static final RspDataCodeType TokenExp
public static final RspDataCodeType NoAccessExp
public static final RspDataCodeType NoDeviceExp
public static final RspDataCodeType InValidData
public static final RspDataCodeType NoLimit
public static final RspDataCodeType MaxDefCode
public static RspDataCodeType[] values()
for (RspDataCodeType c : RspDataCodeType.values()) System.out.println(c);
public static RspDataCodeType valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值public static RspDataCodeType getByCode(Integer code)
code - the codepublic Integer getCode()
public void setCode(Integer code)
code - the codepublic String getMsg()
public void setMsg(String msg)
msg - the msgCopyright © 2019. All rights reserved.