Class InjectionServiceProviderException

All Implemented Interfaces:
Serializable
Direct Known Subclasses:
InvocationException, ServiceProviderInjectionException

public class InjectionServiceProviderException extends InjectionException
An exception relative to a ServiceProvider.
See Also:
  • Constructor Details

    • InjectionServiceProviderException

      public InjectionServiceProviderException(String msg)
      A general purpose exception from the Injection framework.
      Parameters:
      msg - the message
    • InjectionServiceProviderException

      public InjectionServiceProviderException(String msg, Throwable cause)
      A general purpose exception from the Injection framework.
      Parameters:
      msg - the message
      cause - the root cause
    • InjectionServiceProviderException

      public InjectionServiceProviderException(String msg, ServiceProvider<?> serviceProvider)
      A general purpose exception from the Injection framework.
      Parameters:
      msg - the message
      serviceProvider - the service provider
    • InjectionServiceProviderException

      public InjectionServiceProviderException(String msg, Throwable cause, ServiceProvider<?> serviceProvider)
      A general purpose exception from the Injection framework.
      Parameters:
      msg - the message
      cause - the root cause
      serviceProvider - the service provider
  • Method Details

    • serviceProvider

      public Optional<ServiceProvider<?>> serviceProvider()
      The service provider that this exception pertains to, or empty if not related to any particular provider.
      Returns:
      the optional / contextual service provider
    • getMessage

      public String getMessage()
      Overrides:
      getMessage in class Throwable