public enum TaskFailureType extends Enum<TaskFailureType>
Enum Constant and Description |
---|
FATAL
Indicates an error which is fatal; no more attempts will be made for the task
|
NON_FATAL
Indicates an error, which can potentially be recovered from when another attempt is launched
|
Modifier and Type | Method and Description |
---|---|
static TaskFailureType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TaskFailureType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TaskFailureType NON_FATAL
public static final TaskFailureType FATAL
public static TaskFailureType[] values()
for (TaskFailureType c : TaskFailureType.values()) System.out.println(c);
public static TaskFailureType 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 nullCopyright © 2016 Apache Software Foundation. All rights reserved.