public enum Code extends Enum<Code>
| 枚举常量和说明 |
|---|
E40000 |
E40001 |
E40002 |
E40003 |
E40004 |
E40005 |
E40006 |
E40007 |
E40008 |
E40009 |
E40010 |
E40011 |
E40012 |
E40013 |
E40014 |
E40015 |
E40016 |
E40017 |
E40018 |
E40300 |
| 限定符和类型 | 方法和说明 |
|---|---|
Code |
appendMsg(String msg)
附加描述
|
int |
getId()
获取自定义编码
|
String |
getMessage()
获取错误信息
|
int |
getStatus()
HTTP状态码
|
static Code |
valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static Code[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final Code E40000
public static final Code E40001
public static final Code E40002
public static final Code E40003
public static final Code E40004
public static final Code E40005
public static final Code E40006
public static final Code E40007
public static final Code E40008
public static final Code E40009
public static final Code E40010
public static final Code E40011
public static final Code E40012
public static final Code E40013
public static final Code E40014
public static final Code E40015
public static final Code E40016
public static final Code E40017
public static final Code E40018
public static final Code E40300
public static Code[] values()
for (Code c : Code.values()) System.out.println(c);
public static Code valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值public int getId()
public int getStatus()
public String getMessage()
Copyright © 2018. All rights reserved.