Package org.wso2.carbon.ntask.common
Enum TaskException.Code
- java.lang.Object
-
- java.lang.Enum<TaskException.Code>
-
- org.wso2.carbon.ntask.common.TaskException.Code
-
- All Implemented Interfaces:
Serializable
,Comparable<TaskException.Code>
- Enclosing class:
- TaskException
public static enum TaskException.Code extends Enum<TaskException.Code>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CONFIG_ERROR
NO_TASK_EXISTS
TASK_ALREADY_STARTED
TASK_EXISTS
TASK_NODE_NOT_AVAILABLE
UNKNOWN
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static TaskException.Code
valueOf(String name)
Returns the enum constant of this type with the specified name.static TaskException.Code[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
TASK_EXISTS
public static final TaskException.Code TASK_EXISTS
-
NO_TASK_EXISTS
public static final TaskException.Code NO_TASK_EXISTS
-
TASK_ALREADY_STARTED
public static final TaskException.Code TASK_ALREADY_STARTED
-
UNKNOWN
public static final TaskException.Code UNKNOWN
-
CONFIG_ERROR
public static final TaskException.Code CONFIG_ERROR
-
TASK_NODE_NOT_AVAILABLE
public static final TaskException.Code TASK_NODE_NOT_AVAILABLE
-
-
Method Detail
-
values
public static TaskException.Code[] 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 (TaskException.Code c : TaskException.Code.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TaskException.Code 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
-
-