@HashCodeAndEqualsPlugin.Enhance public static class Plugin.Engine.Listener.ForErrorHandler extends Plugin.Engine.Listener.Adapter
Plugin.Engine.Listener.Adapter, Plugin.Engine.Listener.Compound, Plugin.Engine.Listener.ForErrorHandler, Plugin.Engine.Listener.NoOp, Plugin.Engine.Listener.StreamWriting, Plugin.Engine.Listener.WithErrorsOnly, Plugin.Engine.Listener.WithTransformationsOnlyPlugin.Engine.ErrorHandler.Enforcing, Plugin.Engine.ErrorHandler.Failing| Constructor and Description |
|---|
ForErrorHandler(Plugin.Engine.ErrorHandler errorHandler)
Creates a new listener representation for an error handler.
|
| Modifier and Type | Method and Description |
|---|---|
void |
onError(Map<TypeDescription,List<Throwable>> throwables)
Invoked at the end of the build if at least one type transformation failed.
|
void |
onError(Plugin plugin,
Throwable throwable)
Invoked at the end of the build if a plugin could not be closed.
|
void |
onError(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.
|
void |
onError(TypeDescription typeDescription,
Plugin plugin,
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(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.
|
onComplete, onDiscovery, onIgnored, onIgnored, onTransformation, onTransformationpublic ForErrorHandler(Plugin.Engine.ErrorHandler errorHandler)
errorHandler - The error handler to delegate to.public void onError(TypeDescription typeDescription, Plugin plugin, Throwable throwable)
Plugin.Engine.Listener.AdapteronError in interface Plugin.Engine.ErrorHandleronError in class Plugin.Engine.Listener.AdaptertypeDescription - The type being matched or transformed.plugin - The plugin being applied.throwable - The throwable that caused the error.public void onError(TypeDescription typeDescription, List<Throwable> throwables)
Plugin.Engine.Listener.AdapteronError in interface Plugin.Engine.ErrorHandleronError in class Plugin.Engine.Listener.AdaptertypeDescription - The type being transformed.throwables - The throwables that caused errors during the application.public void onError(Map<TypeDescription,List<Throwable>> throwables)
Plugin.Engine.Listener.AdapteronError in interface Plugin.Engine.ErrorHandleronError in class Plugin.Engine.Listener.Adapterthrowables - A mapping of types that failed during transformation to the errors that were caught.public void onError(Plugin plugin, Throwable throwable)
Plugin.Engine.Listener.AdapteronError in interface Plugin.Engine.ErrorHandleronError in class Plugin.Engine.Listener.Adapterplugin - 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)
Plugin.Engine.Listener.AdapteronLiveInitializer in interface Plugin.Engine.ErrorHandleronLiveInitializer in class Plugin.Engine.Listener.AdaptertypeDescription - 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)
Plugin.Engine.Listener.AdapteronUnresolved in interface Plugin.Engine.ErrorHandleronUnresolved in class Plugin.Engine.Listener.AdaptertypeName - The name of the unresolved type.public void onManifest(Manifest manifest)
Plugin.Engine.Listener.AdapteronManifest in interface Plugin.Engine.ErrorHandleronManifest in class Plugin.Engine.Listener.Adaptermanifest - The located manifest or null if no manifest was found.public void onResource(String name)
Plugin.Engine.Listener.AdapteronResource in interface Plugin.Engine.ErrorHandleronResource in class Plugin.Engine.Listener.Adaptername - The name of the discovered resource.Copyright © 2014–2019. All rights reserved.