public enum ExceptionType extends Enum<ExceptionType>
| 限定符和类型 | 方法和说明 |
|---|---|
static ExceptionType |
findByCode(int code) |
int |
getCode() |
String |
getMsg() |
void |
setCode(int code) |
void |
setMsg(String msg) |
static ExceptionType |
valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static ExceptionType[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final ExceptionType E10001
public static final ExceptionType E10002
public static final ExceptionType E10003
public static final ExceptionType E10004
public static final ExceptionType E10005
public static final ExceptionType E10006
public static final ExceptionType E10101
public static final ExceptionType E10201
public static final ExceptionType E10202
public static final ExceptionType E10203
public static final ExceptionType E10401
public static ExceptionType[] values()
for (ExceptionType c : ExceptionType.values()) System.out.println(c);
public static ExceptionType valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值public int getCode()
public void setCode(int code)
public String getMsg()
public void setMsg(String msg)
public static ExceptionType findByCode(int code)
Copyright © 2019. All rights reserved.