Enum CommonErrorCode
- java.lang.Object
-
- java.lang.Enum<CommonErrorCode>
-
- risesoft.data.transfer.core.exception.CommonErrorCode
-
- All Implemented Interfaces:
Serializable,Comparable<CommonErrorCode>,ErrorCode
public enum CommonErrorCode extends Enum<CommonErrorCode> implements ErrorCode
管理异常- Author:
- lb
- Date:
- 2023年12月4日
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CONFIG_ERRORCONVERT_NOT_SUPPORTCONVERT_OVER_FLOWHOOK_INTERNAL_ERRORRETRY_FAILRUNTIME_ERRORSHUT_DOWN_TASKTASK_HUNG_EXPIREDWAIT_TIME_EXCEED
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetCode()错误编码StringgetDescription()错误描述StringtoString()必须提供toString的实现static CommonErrorCodevalueOf(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.
-
-
-
Enum Constant Detail
-
CONFIG_ERROR
public static final CommonErrorCode CONFIG_ERROR
-
CONVERT_NOT_SUPPORT
public static final CommonErrorCode CONVERT_NOT_SUPPORT
-
CONVERT_OVER_FLOW
public static final CommonErrorCode CONVERT_OVER_FLOW
-
RETRY_FAIL
public static final CommonErrorCode RETRY_FAIL
-
RUNTIME_ERROR
public static final CommonErrorCode RUNTIME_ERROR
-
HOOK_INTERNAL_ERROR
public static final CommonErrorCode HOOK_INTERNAL_ERROR
-
SHUT_DOWN_TASK
public static final CommonErrorCode SHUT_DOWN_TASK
-
WAIT_TIME_EXCEED
public static final CommonErrorCode WAIT_TIME_EXCEED
-
TASK_HUNG_EXPIRED
public static final CommonErrorCode TASK_HUNG_EXPIRED
-
-
Method Detail
-
values
public static CommonErrorCode[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (CommonErrorCode c : CommonErrorCode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CommonErrorCode valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
toString
public String toString()
Description copied from interface:ErrorCode必须提供toString的实现@Override public String toString() { return String.format("Code:[%s], Description:[%s]. ", this.code, this.describe); }- Specified by:
toStringin interfaceErrorCode- Overrides:
toStringin classEnum<CommonErrorCode>
-
getDescription
public String getDescription()
Description copied from interface:ErrorCode错误描述- Specified by:
getDescriptionin interfaceErrorCode- Returns:
-
-