public static class Plugin.Engine.ErrorHandler.Compound extends java.lang.Object implements Plugin.Engine.ErrorHandler
Plugin.Engine.ErrorHandler.Compound, Plugin.Engine.ErrorHandler.Enforcing, Plugin.Engine.ErrorHandler.Failing
Modifier and Type | Field and Description |
---|---|
private java.util.List<Plugin.Engine.ErrorHandler> |
errorHandlers
The error handlers that are represented by this instance.
|
Constructor and Description |
---|
Compound(java.util.List<? extends Plugin.Engine.ErrorHandler> errorHandlers)
Creates a new compound error handler.
|
Compound(Plugin.Engine.ErrorHandler... errorHandler)
Creates a new compound error handler.
|
Modifier and Type | Method and Description |
---|---|
void |
onError(java.util.Map<TypeDescription,java.util.List<java.lang.Throwable>> throwables)
Invoked at the end of the build if at least one type transformation failed.
|
void |
onError(Plugin plugin,
java.lang.Throwable throwable)
Invoked at the end of the build if a plugin could not be closed.
|
void |
onError(TypeDescription typeDescription,
java.util.List<java.lang.Throwable> throwables)
Invoked after the application of all plugins was attempted if at least one error occured during handling a given type.
|
void |
onError(TypeDescription typeDescription,
Plugin plugin,
java.lang.Throwable throwable)
Invoked if an error occured during a plugin's application on a given type.
|
void |
onLiveInitializer(TypeDescription typeDescription,
TypeDescription definingType)
Invoked if a type transformation implied a live initializer.
|
void |
onManifest(java.util.jar.Manifest manifest)
Invoked when a manifest was found or found missing.
|
void |
onResource(java.lang.String name)
Invoked if a resource that is not a class file is discovered.
|
void |
onUnresolved(java.lang.String typeName)
Invoked if a type could not be resolved.
|
private final java.util.List<Plugin.Engine.ErrorHandler> errorHandlers
public Compound(Plugin.Engine.ErrorHandler... errorHandler)
errorHandler
- The error handlers that are represented by this instance.public Compound(java.util.List<? extends Plugin.Engine.ErrorHandler> errorHandlers)
errorHandlers
- The error handlers that are represented by this instance.public void onError(TypeDescription typeDescription, Plugin plugin, java.lang.Throwable throwable)
onError
in interface Plugin.Engine.ErrorHandler
typeDescription
- The type being matched or transformed.plugin
- The plugin being applied.throwable
- The throwable that caused the error.public void onError(TypeDescription typeDescription, java.util.List<java.lang.Throwable> throwables)
onError
in interface Plugin.Engine.ErrorHandler
typeDescription
- The type being transformed.throwables
- The throwables that caused errors during the application.public void onError(java.util.Map<TypeDescription,java.util.List<java.lang.Throwable>> throwables)
onError
in interface Plugin.Engine.ErrorHandler
throwables
- A mapping of types that failed during transformation to the errors that were caught.public void onError(Plugin plugin, java.lang.Throwable throwable)
onError
in interface Plugin.Engine.ErrorHandler
plugin
- 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.ErrorHandler
typeDescription
- 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(java.lang.String typeName)
onUnresolved
in interface Plugin.Engine.ErrorHandler
typeName
- The name of the unresolved type.public void onManifest(java.util.jar.Manifest manifest)
onManifest
in interface Plugin.Engine.ErrorHandler
manifest
- The located manifest or null
if no manifest was found.public void onResource(java.lang.String name)
onResource
in interface Plugin.Engine.ErrorHandler
name
- The name of the discovered resource.