public enum CommonErrorCode extends Enum<CommonErrorCode> implements BaseErrorCode
| 枚举常量和说明 |
|---|
CONVERT_ERROR |
EMPTY_PARAM |
ILLEGAL_PARAM |
NULL_PARAM |
RESULT_EMPTY |
RESULT_NOT_EXPECTED |
RESULT_NULL |
ROLLBACK_FAILED |
STATUS_NOT_EXPECTED |
SYSTEM_ERROR |
VALID_FAIL |
VERSION_NOT_EXPECTED |
| 限定符和类型 | 方法和说明 |
|---|---|
String |
getErrorCode() |
String |
getMessage() |
String |
getPrefix() |
static CommonErrorCode |
valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static CommonErrorCode[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final CommonErrorCode SYSTEM_ERROR
public static final CommonErrorCode ILLEGAL_PARAM
public static final CommonErrorCode NULL_PARAM
public static final CommonErrorCode EMPTY_PARAM
public static final CommonErrorCode RESULT_NULL
public static final CommonErrorCode RESULT_EMPTY
public static final CommonErrorCode VALID_FAIL
public static final CommonErrorCode STATUS_NOT_EXPECTED
public static final CommonErrorCode VERSION_NOT_EXPECTED
public static final CommonErrorCode RESULT_NOT_EXPECTED
public static final CommonErrorCode CONVERT_ERROR
public static final CommonErrorCode ROLLBACK_FAILED
public static CommonErrorCode[] values()
for (CommonErrorCode c : CommonErrorCode.values()) System.out.println(c);
public static CommonErrorCode valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值public String getPrefix()
getPrefix 在接口中 BaseErrorCodepublic String getErrorCode()
getErrorCode 在接口中 BaseErrorCodepublic String getMessage()
getMessage 在接口中 BaseErrorCodeCopyright © 2018. All rights reserved.