public class ServiceNotAvailableException extends RuntimeException
IServiceProvider.| Constructor and Description | 
|---|
ServiceNotAvailableException()
Initializes a new instance with a default message. 
 | 
ServiceNotAvailableException(Class<?> requiredService,
                            IServiceProvider provider)
Initializes a new instance with the service that was required and the provider from
    which it was requested. 
 | 
ServiceNotAvailableException(String message)
Initializes a new instance with a specified message. 
 | 
ServiceNotAvailableException(String message,
                            Class<?> requiredService,
                            IServiceProvider provider)
Initializes a new instance with a custom message. 
 | 
ServiceNotAvailableException(String message,
                            RuntimeException inner)
Initializes a new instance with a specified error message and a reference to the inner
    exception that is the cause of this exception. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
IServiceProvider | 
getProvider()
Gets the provider that did not have the required service, if available. 
 | 
Class<?> | 
getRequiredService()
Gets the required service that was not available. 
 | 
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic ServiceNotAvailableException()
public ServiceNotAvailableException(String message)
message - The error message that explains the reason for the exception.public ServiceNotAvailableException(String message, RuntimeException inner)
message - The error message that explains the reason for the exception.inner - The exception that is the cause of the current exception.public ServiceNotAvailableException(Class<?> requiredService, IServiceProvider provider)
requiredService - The required service that was not available.provider - The provider that did not have the required service.public ServiceNotAvailableException(String message, Class<?> requiredService, IServiceProvider provider)
message - The custom message to use.requiredService - The required service that was not available.provider - The provider that did not have the required service.public final Class<?> getRequiredService()
public final IServiceProvider getProvider()