public enum ErrorType extends Enum<ErrorType>
对应于标准错误码的第4位
位置 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 |
示例 | A | E | 0 | 1 | 1 | 1 | 0 | 1 | 1 | 0 | 2 | 7 |
说明 | 固定 标识 |
规 范 版 本 |
错 误 类 型 |
错 误 级 别 |
错误场景 | 错误编 码 |
Enum Constant and Description |
---|
BIZ
业务错误
|
EXT
框架业务扩展错误
|
FRAMEWORK
框架级系统错误
|
THIRD_PARTY
第三方错误
|
Modifier and Type | Method and Description |
---|---|
static ErrorType |
find(String code) |
int |
getType() |
static ErrorType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ErrorType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ErrorType FRAMEWORK
public static final ErrorType EXT
public static final ErrorType BIZ
public static final ErrorType THIRD_PARTY
public static ErrorType[] values()
for (ErrorType c : ErrorType.values()) System.out.println(c);
public static ErrorType 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 int getType()
Copyright © 2006–2018 TinyGroup. All rights reserved.