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:
java.io.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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ServiceUnavailableException(java.lang.String message, java.lang.String filter)
Creates a Service Unavailable Exception with the specified message.ServiceUnavailableException(java.lang.String message, java.lang.String filter, java.lang.Throwable cause)
Creates a Service Unavailable Exception with the specified message and exception cause.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getFilter()
Returns the filter expression that a service would have needed to satisfy in order for the invocation to proceed.
-
-
-
Constructor Detail
-
ServiceUnavailableException
public ServiceUnavailableException(java.lang.String message, java.lang.String filter)
Creates a Service Unavailable Exception with the specified message.- Parameters:
message
- The associated message.filter
- The filter used for the service lookup.
-
ServiceUnavailableException
public ServiceUnavailableException(java.lang.String message, java.lang.String filter, java.lang.Throwable cause)
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.
-
-