public static enum Plugin.Engine.ErrorHandler.Failing extends Enum<Plugin.Engine.ErrorHandler.Failing> implements Plugin.Engine.ErrorHandler
Plugin.Engine.ErrorHandler.Compound, Plugin.Engine.ErrorHandler.Enforcing, Plugin.Engine.ErrorHandler.Failing| Enum Constant and Description |
|---|
FAIL_AFTER_TYPE
An error handler that fails the build after applying all plugins if at least one plugin failed.
|
FAIL_FAST
An error handler that fails the build immediatly on the first error.
|
FAIL_LAST
An error handler that fails the build after transforming all types if at least one plugin failed.
|
| Modifier and Type | Method and Description |
|---|---|
void |
onError(Plugin plugin,
Throwable throwable)
Invoked at the end of the build if a plugin could not be closed.
|
void |
onLiveInitializer(TypeDescription typeDescription,
TypeDescription definingType)
Invoked if a type transformation implied a live initializer.
|
void |
onManifest(Manifest manifest)
Invoked when a manifest was found or found missing.
|
void |
onResource(String name)
Invoked if a resource that is not a class file is discovered.
|
void |
onUnresolved(String typeName)
Invoked if a type could not be resolved.
|
static Plugin.Engine.ErrorHandler.Failing |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Plugin.Engine.ErrorHandler.Failing[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfonError, onError, onErrorpublic static final Plugin.Engine.ErrorHandler.Failing FAIL_FAST
public static final Plugin.Engine.ErrorHandler.Failing FAIL_AFTER_TYPE
public static final Plugin.Engine.ErrorHandler.Failing FAIL_LAST
public static Plugin.Engine.ErrorHandler.Failing[] values()
for (Plugin.Engine.ErrorHandler.Failing c : Plugin.Engine.ErrorHandler.Failing.values()) System.out.println(c);
public static Plugin.Engine.ErrorHandler.Failing 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 void onError(Plugin plugin, Throwable throwable)
onError in interface Plugin.Engine.ErrorHandlerplugin - The plugin that could not be closed.throwable - The error that was caused when the plugin was attempted to be closed.public void onLiveInitializer(TypeDescription typeDescription, TypeDescription definingType)
onLiveInitializer in interface Plugin.Engine.ErrorHandlertypeDescription - The type that was transformed.definingType - The type that implies the initializer which might be the type itself or an auxiliary type.public void onUnresolved(String typeName)
onUnresolved in interface Plugin.Engine.ErrorHandlertypeName - The name of the unresolved type.public void onManifest(Manifest manifest)
onManifest in interface Plugin.Engine.ErrorHandlermanifest - The located manifest or null if no manifest was found.public void onResource(String name)
onResource in interface Plugin.Engine.ErrorHandlername - The name of the discovered resource.Copyright © 2014–2023. All rights reserved.