枚举 ApiErrorCode
- 所有已实现的接口:
IErrorCode,Serializable,Comparable<ApiErrorCode>,java.lang.constant.Constable
@Deprecated public enum ApiErrorCode extends Enum<ApiErrorCode> implements IErrorCode
已过时。
REST API 错误码
- 从以下版本开始:
- 2017-06-26
- 作者:
- hubin
-
嵌套类概要
从类继承的嵌套类/接口 java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
枚举常量概要
-
方法概要
修饰符和类型 方法 说明 static ApiErrorCodefromCode(long code)已过时。longgetCode()已过时。错误编码 -1、失败 0、成功StringgetMsg()已过时。错误描述StringtoString()已过时。static ApiErrorCodevalueOf(String name)已过时。返回带有指定名称的该类型的枚举常量。static ApiErrorCode[]values()已过时。按照声明该枚举类型的常量的顺序, 返回一个包含这些常量的数组。
-
枚举常量详细资料
-
FAILED
已过时。失败 -
SUCCESS
已过时。成功
-
-
方法详细资料
-
values
已过时。按照声明该枚举类型的常量的顺序, 返回一个包含这些常量的数组。- 返回:
- 按照声明该枚举类型的常量的顺序返回的包含这些常量的数组
-
valueOf
已过时。返回带有指定名称的该类型的枚举常量。 字符串必须与用于声明该类型的枚举常量的 标识符完全匹配。(不允许有多余 的空格字符。)- 参数:
name- 要返回的枚举常量的名称。- 返回:
- 返回带有指定名称的枚举常量
- 抛出:
IllegalArgumentException- 如果该枚举类型没有带有指定名称的常量NullPointerException- 如果参数为空值
-
fromCode
已过时。 -
getCode
public long getCode()已过时。从接口复制的说明:IErrorCode错误编码 -1、失败 0、成功- 指定者:
getCode在接口中IErrorCode
-
getMsg
已过时。从接口复制的说明:IErrorCode错误描述- 指定者:
getMsg在接口中IErrorCode
-
toString
已过时。- 覆盖:
toString在类中Enum<ApiErrorCode>
-