public enum FailurePolicy extends Enum<FailurePolicy>
Enum Constant and Description |
---|
Error
Return an error exit code to the user but do not rollback any successful
invocations of the commands.
|
Ignore
Ignore the failure, do not report to the user.
|
Warn
Warn the user of the failure, does not change the overall exit code
of the command execution.
|
Modifier and Type | Method and Description |
---|---|
static ActionReport.ExitCode |
applyFailurePolicy(FailurePolicy f,
ActionReport.ExitCode e) |
static FailurePolicy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static FailurePolicy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final FailurePolicy Ignore
public static final FailurePolicy Warn
public static final FailurePolicy Error
public static FailurePolicy[] values()
for (FailurePolicy c : FailurePolicy.values()) System.out.println(c);
public static FailurePolicy 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 nullpublic static ActionReport.ExitCode applyFailurePolicy(FailurePolicy f, ActionReport.ExitCode e)
Copyright © 2018. All rights reserved.