public enum CommonErrorCode extends Enum<CommonErrorCode> implements BaseErrorCode
| Enum Constant and Description |
|---|
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 |
| Modifier and Type | Method and Description |
|---|---|
String |
getErrorCode() |
String |
getMessage() |
String |
getPrefix() |
static CommonErrorCode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CommonErrorCode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
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 - 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 String getPrefix()
getPrefix in interface BaseErrorCodepublic String getErrorCode()
getErrorCode in interface BaseErrorCodepublic String getMessage()
getMessage in interface BaseErrorCodeCopyright © 2018. All rights reserved.