java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
io.helidon.pico.api.PicoException
io.helidon.pico.api.PicoServiceProviderException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
InjectionException,InvocationException
An exception relative to a
ServiceProvider.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionA general purpose exception from Pico.PicoServiceProviderException(String msg, ServiceProvider<?> serviceProvider) A general purpose exception from Pico.PicoServiceProviderException(String msg, Throwable cause) A general purpose exception from Pico.PicoServiceProviderException(String msg, Throwable cause, ServiceProvider<?> serviceProvider) A general purpose exception from Pico. -
Method Summary
Modifier and TypeMethodDescriptionThe service provider that this exception pertains to, or empty if not related to any particular provider.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
PicoServiceProviderException
A general purpose exception from Pico.- Parameters:
msg- the message
-
PicoServiceProviderException
A general purpose exception from Pico.- Parameters:
msg- the messagecause- the root cause
-
PicoServiceProviderException
A general purpose exception from Pico.- Parameters:
msg- the messageserviceProvider- the service provider
-
PicoServiceProviderException
public PicoServiceProviderException(String msg, Throwable cause, ServiceProvider<?> serviceProvider) A general purpose exception from Pico.- Parameters:
msg- the messagecause- the root causeserviceProvider- the service provider
-
-
Method Details
-
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
- Overrides:
getMessagein classThrowable
-