public class ErrorCodeDefault extends AbstractErrorCode
位置 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 |
示例 | 0 | T | E | 1 | 1 | 1 | 0 | 1 | 1 | 0 | 2 | 7 |
说明 | 规 范 版 本 |
固定 标识 |
错 误 类 型 |
错 误 级 别 |
错误场景 | 错误编 码 |
Modifier and Type | Field and Description |
---|---|
static String |
UNKNOWN_BIZ_ERROR
未知业务异常
|
static String |
UNKNOWN_ERROR
未知系统异常
|
static String |
UNKNOWN_EXT_ERROR
未知扩展系统异常
|
static String |
UNKNOWN_SYSTEM_ERROR
未知系统异常
|
static String |
UNKNOWN_THIRD_PARTY_ERROR
未知第三方异常
|
static String |
VERSION |
DEFAULT_PREFIX, DEFAULT_VERSION, errorLevel, errorNumber, errorPrefix, errorScene, errorType, LEVEL, NUMBER, PREFIX, SCENE, TYPE, version
Constructor and Description |
---|
ErrorCodeDefault() |
ErrorCodeDefault(ErrorType errorType,
ErrorLevel errorLevel,
int errorScene,
int errorNumber,
String errorPrefix) |
Modifier and Type | Method and Description |
---|---|
protected String |
getErrorCodeFormatString() |
protected int[] |
getFieldLength() |
boolean |
isMatch(String errorCodeStr)
错误码长度匹配
|
assertLength, getErrorLevel, getErrorNumber, getErrorPrefix, getErrorScene, getErrorType, getVersion, parse, setErrorLevel, setErrorNumber, setErrorPrefix, setErrorScene, setErrorType, setVersion, toString
public static final String VERSION
public static final String UNKNOWN_ERROR
public static final String UNKNOWN_SYSTEM_ERROR
public static final String UNKNOWN_EXT_ERROR
public static final String UNKNOWN_BIZ_ERROR
public static final String UNKNOWN_THIRD_PARTY_ERROR
public ErrorCodeDefault()
public ErrorCodeDefault(ErrorType errorType, ErrorLevel errorLevel, int errorScene, int errorNumber, String errorPrefix)
protected int[] getFieldLength()
getFieldLength
in class AbstractErrorCode
protected String getErrorCodeFormatString()
getErrorCodeFormatString
in class AbstractErrorCode
public boolean isMatch(String errorCodeStr)
ErrorCodeParser
Copyright © 2006–2018 TinyGroup. All rights reserved.