Enum Constant and Description |
---|
ARGUMENT_EMPTY
参数为空 - 10000
|
LOGIN_FAIL
登录失败 - 10003
|
NOT_EXISTS
数据不存在或异常 - 10002
|
NOT_LOGIN
用户未登录 - 10001
|
SERVER_ERROR
服务器异常 - 50001
|
Modifier and Type | Method and Description |
---|---|
int |
getCode() |
java.lang.String |
getMsg() |
java.lang.String |
toString() |
static ApiConst |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ApiConst[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ApiConst ARGUMENT_EMPTY
public static final ApiConst NOT_LOGIN
public static final ApiConst NOT_EXISTS
public static final ApiConst LOGIN_FAIL
public static final ApiConst SERVER_ERROR
public static ApiConst[] values()
for (ApiConst c : ApiConst.values()) System.out.println(c);
public static ApiConst valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic int getCode()
public java.lang.String getMsg()
public java.lang.String toString()
toString
in class java.lang.Enum<ApiConst>
Copyright © 2019 by Sucang.cn