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>
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
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 name
NullPointerException - if the argument is null
Copyright © 2015 WSO2. All rights reserved.