public enum SystemErrorEnum extends java.lang.Enum<SystemErrorEnum> implements JellyErrorGetter
| 枚举常量和说明 |
|---|
NPE_ERROR
不应该为NULL| 需要提供1个参数(参数名)
|
SYSTEM_ERROR
系统错误
|
SYSTEM_ERROR_WITH_MSG
带消息的系统错误
|
| 限定符和类型 | 方法和说明 |
|---|---|
JellyError |
getError(java.lang.Object... args)
根据参数构建错误信息
|
static SystemErrorEnum |
valueOf(java.lang.String name)
返回带有指定名称的该类型的枚举常量。
|
static SystemErrorEnum[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final SystemErrorEnum SYSTEM_ERROR
public static final SystemErrorEnum SYSTEM_ERROR_WITH_MSG
public static final SystemErrorEnum NPE_ERROR
public static SystemErrorEnum[] values()
for (SystemErrorEnum c : SystemErrorEnum.values()) System.out.println(c);
public static SystemErrorEnum valueOf(java.lang.String name)
name - 要返回的枚举常量的名称。java.lang.IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量java.lang.NullPointerException - 如果参数为空值public JellyError getError(java.lang.Object... args)
JellyErrorGettergetError 在接口中 JellyErrorGetterargs - 错误参数