Class PicoServiceProviderException

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

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

    • PicoServiceProviderException

      public PicoServiceProviderException(String msg)
      A general purpose exception from Pico.
      Parameters:
      msg - the message
    • PicoServiceProviderException

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

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

      public PicoServiceProviderException(String msg, Throwable cause, ServiceProvider<?> serviceProvider)
      A general purpose exception from Pico.
      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