Enum FrameworkErrorCode
- java.lang.Object
-
- java.lang.Enum<FrameworkErrorCode>
-
- risesoft.data.transfer.core.exception.FrameworkErrorCode
-
- All Implemented Interfaces:
Serializable,Comparable<FrameworkErrorCode>,ErrorCode
public enum FrameworkErrorCode extends Enum<FrameworkErrorCode> implements ErrorCode
标记运行的异常- Author:
- lb
- Date:
- 2023年12月11日
-
-
Enum Constant Summary
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetCode()错误编码StringgetDescription()错误描述inttoExitValue()通过 "Framework-143" 来标示 任务是 Killed 状态StringtoString()必须提供toString的实现static FrameworkErrorCodevalueOf(String name)Returns the enum constant of this type with the specified name.static FrameworkErrorCode[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
INSTALL_ERROR
public static final FrameworkErrorCode INSTALL_ERROR
-
ARGUMENT_ERROR
public static final FrameworkErrorCode ARGUMENT_ERROR
-
RUNTIME_ERROR
public static final FrameworkErrorCode RUNTIME_ERROR
-
CONFIG_ERROR
public static final FrameworkErrorCode CONFIG_ERROR
-
SECRET_ERROR
public static final FrameworkErrorCode SECRET_ERROR
-
HOOK_LOAD_ERROR
public static final FrameworkErrorCode HOOK_LOAD_ERROR
-
HOOK_FAIL_ERROR
public static final FrameworkErrorCode HOOK_FAIL_ERROR
-
PLUGIN_INSTALL_ERROR
public static final FrameworkErrorCode PLUGIN_INSTALL_ERROR
-
PLUGIN_NOT_FOUND
public static final FrameworkErrorCode PLUGIN_NOT_FOUND
-
PLUGIN_INIT_ERROR
public static final FrameworkErrorCode PLUGIN_INIT_ERROR
-
PLUGIN_RUNTIME_ERROR
public static final FrameworkErrorCode PLUGIN_RUNTIME_ERROR
-
PLUGIN_DIRTY_DATA_LIMIT_EXCEED
public static final FrameworkErrorCode PLUGIN_DIRTY_DATA_LIMIT_EXCEED
-
PLUGIN_SPLIT_ERROR
public static final FrameworkErrorCode PLUGIN_SPLIT_ERROR
-
KILL_JOB_TIMEOUT_ERROR
public static final FrameworkErrorCode KILL_JOB_TIMEOUT_ERROR
-
START_TASKGROUP_ERROR
public static final FrameworkErrorCode START_TASKGROUP_ERROR
-
CALL_DATAX_SERVICE_FAILED
public static final FrameworkErrorCode CALL_DATAX_SERVICE_FAILED
-
CALL_REMOTE_FAILED
public static final FrameworkErrorCode CALL_REMOTE_FAILED
-
KILLED_EXIT_VALUE
public static final FrameworkErrorCode KILLED_EXIT_VALUE
-
-
Method Detail
-
values
public static FrameworkErrorCode[] 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 (FrameworkErrorCode c : FrameworkErrorCode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static FrameworkErrorCode 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
-
getDescription
public String getDescription()
Description copied from interface:ErrorCode错误描述- Specified by:
getDescriptionin interfaceErrorCode- Returns:
-
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<FrameworkErrorCode>
-
toExitValue
public int toExitValue()
通过 "Framework-143" 来标示 任务是 Killed 状态
-
-