public enum ErrorLevel extends Enum<ErrorLevel>
对应于标准错误码的第5位:
位置 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 |
示例 | A | E | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | 2 | 7 |
说明 | 固定 标识 | 规 范 版 本 | 错 误 类 型 | 错 误 级 别 | 错误场景 | 错误编 码 |
Modifier and Type | Method and Description |
---|---|
static ErrorLevel |
find(String code) |
int |
getLevel() |
static ErrorLevel |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ErrorLevel[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ErrorLevel FATAL
public static final ErrorLevel ERROR
public static ErrorLevel[] values()
for (ErrorLevel c : ErrorLevel.values()) System.out.println(c);
public static ErrorLevel valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static ErrorLevel find(String code)
public int getLevel()
Copyright © 2006–2018 TinyGroup. All rights reserved.