Class ServiceUnavailableException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.osgi.framework.ServiceException
org.osgi.service.blueprint.container.ServiceUnavailableException
- All Implemented Interfaces:
Serializable
public class ServiceUnavailableException
extends org.osgi.framework.ServiceException
A Blueprint exception indicating that a service is unavailable.
This exception is thrown when an invocation is made on a service reference
and a backing service is not available.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final String
The filter string associated with the exception.private static final long
Fields inherited from class org.osgi.framework.ServiceException
ASYNC_ERROR, FACTORY_ERROR, FACTORY_EXCEPTION, FACTORY_RECURSION, REMOTE, SUBCLASSED, UNREGISTERED, UNSPECIFIED
-
Constructor Summary
ConstructorsConstructorDescriptionServiceUnavailableException
(String message, String filter) Creates a Service Unavailable Exception with the specified message.ServiceUnavailableException
(String message, String filter, Throwable cause) Creates a Service Unavailable Exception with the specified message and exception cause. -
Method Summary
Methods inherited from class org.osgi.framework.ServiceException
getType
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
filter
The filter string associated with the exception.
-
-
Constructor Details
-
ServiceUnavailableException
Creates a Service Unavailable Exception with the specified message.- Parameters:
message
- The associated message.filter
- The filter used for the service lookup.
-
ServiceUnavailableException
Creates a Service Unavailable Exception with the specified message and exception cause.- Parameters:
message
- The associated message.filter
- The filter used for the service lookup.cause
- The cause of this exception.
-
-
Method Details
-
getFilter
Returns the filter expression that a service would have needed to satisfy in order for the invocation to proceed.- Returns:
- The failing filter.
-