Package net.bytebuddy.build
Class Plugin.Engine.ErrorHandler.Compound
java.lang.Object
net.bytebuddy.build.Plugin.Engine.ErrorHandler.Compound
- All Implemented Interfaces:
Plugin.Engine.ErrorHandler
- Enclosing interface:
Plugin.Engine.ErrorHandler
public static class Plugin.Engine.ErrorHandler.Compound
extends Object
implements Plugin.Engine.ErrorHandler
A compound error handler.
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.bytebuddy.build.Plugin.Engine.ErrorHandler
Plugin.Engine.ErrorHandler.Compound, Plugin.Engine.ErrorHandler.Enforcing, Plugin.Engine.ErrorHandler.Failing -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final List<Plugin.Engine.ErrorHandler> The error handlers that are represented by this instance. -
Constructor Summary
ConstructorsConstructorDescriptionCompound(List<? extends Plugin.Engine.ErrorHandler> errorHandlers) Creates a new compound error handler.Compound(Plugin.Engine.ErrorHandler... errorHandler) Creates a new compound error handler. -
Method Summary
Modifier and TypeMethodDescriptionvoidonError(Map<TypeDescription, List<Throwable>> throwables) Invoked at the end of the build if at least one type transformation failed.voidInvoked at the end of the build if a plugin could not be closed.voidonError(TypeDescription typeDescription, List<Throwable> throwables) Invoked after the application of all plugins was attempted if at least one error occured during handling a given type.voidonError(TypeDescription typeDescription, Plugin plugin, Throwable throwable) Invoked if an error occured during a plugin's application on a given type.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.
-
Field Details
-
errorHandlers
The error handlers that are represented by this instance.
-
-
Constructor Details
-
Compound
Creates a new compound error handler.- Parameters:
errorHandler- The error handlers that are represented by this instance.
-
Compound
Creates a new compound error handler.- Parameters:
errorHandlers- The error handlers that are represented by this instance.
-
-
Method Details
-
onError
Invoked if an error occured during a plugin's application on a given type.- Specified by:
onErrorin interfacePlugin.Engine.ErrorHandler- Parameters:
typeDescription- The type being matched or transformed.plugin- The plugin being applied.throwable- The throwable that caused the error.
-
onError
Invoked after the application of all plugins was attempted if at least one error occured during handling a given type.- Specified by:
onErrorin interfacePlugin.Engine.ErrorHandler- Parameters:
typeDescription- The type being transformed.throwables- The throwables that caused errors during the application.
-
onError
Invoked at the end of the build if at least one type transformation failed.- Specified by:
onErrorin interfacePlugin.Engine.ErrorHandler- Parameters:
throwables- A mapping of types that failed during transformation to the errors that were caught.
-
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.
-