org.eclipse.aether.impl

## Class DefaultServiceLocator.ErrorHandler

- java.lang.Object
- - org.eclipse.aether.impl.DefaultServiceLocator.ErrorHandler

- Enclosing class:
    DefaultServiceLocator

      public abstract static class DefaultServiceLocator.ErrorHandler
      extends Object

  A hook to customize the handling of errors encountered while locating a service implementation.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `DefaultServiceLocator.ErrorHandler()`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `serviceCreationFailed(Class<?> type, Class<?> impl, Throwable exception)` Handles errors during creation of a service.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### DefaultServiceLocator.ErrorHandler

          public DefaultServiceLocator.ErrorHandler()

  - ### Method Detail

    - #### serviceCreationFailed

          public void serviceCreationFailed(Class<?> type,
                                   Class<?> impl,
                                   Throwable exception)

      Handles errors during creation of a service. The default implemention does nothing.
      Parameters:
        `type` - The interface describing the service, must not be `null`.
        `impl` - The implementation class of the service, must not be `null`.
        `exception` - The error that occurred while trying to instantiate the implementation class, must not be `null`.

Copyright © 2010-2013 The Eclipse Foundation. All Rights Reserved.