public static enum Adjustment.ErrorHandler extends java.lang.Enum<Adjustment.ErrorHandler>
| Enum Constant and Description |
|---|
FAIL
An error handler that fails the build with the original exception upon an adjustment error.
|
IGNORE
An error handler that ignores any adjustment errors.
|
WARN
An error handler that logs a warning upon an adjustment error.
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
apply(org.gradle.api.Project project,
java.lang.String name,
org.gradle.api.Task task,
java.lang.RuntimeException exception)
Applies this handler upon an exception caused by an adjustment.
|
static Adjustment.ErrorHandler |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Adjustment.ErrorHandler[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Adjustment.ErrorHandler FAIL
public static final Adjustment.ErrorHandler WARN
public static final Adjustment.ErrorHandler IGNORE
public static Adjustment.ErrorHandler[] values()
for (Adjustment.ErrorHandler c : Adjustment.ErrorHandler.values()) System.out.println(c);
public static Adjustment.ErrorHandler valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullprotected abstract void apply(org.gradle.api.Project project,
java.lang.String name,
org.gradle.api.Task task,
java.lang.RuntimeException exception)
project - The project that applies the Byte Buddy task.name - The name of the Byte Buddy task.task - The task being adjusted or being investigated for adjustment.exception - The exception that was yielded during adjustment.