Package org.eclipse.aether.impl
Class DefaultServiceLocator.ErrorHandler
java.lang.Object
org.eclipse.aether.impl.DefaultServiceLocator.ErrorHandler
- Enclosing class:
- DefaultServiceLocator
A hook to customize the handling of errors encountered while locating a service implementation.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
serviceCreationFailed
(Class<?> type, Class<?> impl, Throwable exception) Handles errors during creation of a service.
-
Constructor Details
-
ErrorHandler
public ErrorHandler()
-
-
Method Details
-
serviceCreationFailed
Handles errors during creation of a service. The default implemention does nothing.- Parameters:
type
- The interface describing the service, must not benull
.impl
- The implementation class of the service, must not benull
.exception
- The error that occurred while trying to instantiate the implementation class, must not benull
.
-