Enum Plugin.Engine.ErrorHandler.Failing
java.lang.Object
java.lang.Enum<Plugin.Engine.ErrorHandler.Failing>
net.bytebuddy.build.Plugin.Engine.ErrorHandler.Failing
- All Implemented Interfaces:
Serializable, Comparable<Plugin.Engine.ErrorHandler.Failing>, java.lang.constant.Constable, Plugin.Engine.ErrorHandler
- Enclosing interface:
Plugin.Engine.ErrorHandler
public static enum Plugin.Engine.ErrorHandler.Failing
extends Enum<Plugin.Engine.ErrorHandler.Failing>
implements Plugin.Engine.ErrorHandler
An implementation of an error handler that fails the plugin engine application.
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E>Nested classes/interfaces inherited from interface Plugin.Engine.ErrorHandler
Plugin.Engine.ErrorHandler.Compound, Plugin.Engine.ErrorHandler.Enforcing, Plugin.Engine.ErrorHandler.Failing -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAn error handler that fails the build after applying all plugins if at least one plugin failed.An error handler that fails the build immediatly on the first error.An error handler that fails the build after transforming all types if at least one plugin failed. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidInvoked at the end of the build if a plugin could not be closed.voidonLiveInitializer(TypeDescription typeDescription, TypeDescription definingType) Invoked if a type transformation implied a live initializer.voidonManifest(Manifest manifest) Invoked when a manifest was found or found missing.voidonResource(String name) Invoked if a resource that is not a class file is discovered.voidonUnresolved(String typeName) Invoked if a type could not be resolved.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.Methods inherited from class Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfMethods inherited from interface Plugin.Engine.ErrorHandler
onError, onError, onError
-
Enum Constant Details
-
FAIL_FAST
An error handler that fails the build immediatly on the first error. -
FAIL_AFTER_TYPE
An error handler that fails the build after applying all plugins if at least one plugin failed. -
FAIL_LAST
An error handler that fails the build after transforming all types if at least one plugin failed.
-
-
Constructor Details
-
Failing
private Failing()
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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 nameNullPointerException- if the argument is null
-
onError
Invoked at the end of the build if a plugin could not be closed.- Specified by:
onErrorin interfacePlugin.Engine.ErrorHandler- Parameters:
plugin- The plugin that could not be closed.throwable- The error that was caused when the plugin was attempted to be closed.
-
onLiveInitializer
Invoked if a type transformation implied a live initializer.- Specified by:
onLiveInitializerin interfacePlugin.Engine.ErrorHandler- Parameters:
typeDescription- The type that was transformed.definingType- The type that implies the initializer which might be the type itself or an auxiliary type.
-
onUnresolved
Invoked if a type could not be resolved.- Specified by:
onUnresolvedin interfacePlugin.Engine.ErrorHandler- Parameters:
typeName- The name of the unresolved type.
-
onManifest
Invoked when a manifest was found or found missing.- Specified by:
onManifestin interfacePlugin.Engine.ErrorHandler- Parameters:
manifest- The located manifest ornullif no manifest was found.
-
onResource
Invoked if a resource that is not a class file is discovered.- Specified by:
onResourcein interfacePlugin.Engine.ErrorHandler- Parameters:
name- The name of the discovered resource.
-