|
IBM WebSphereTM eXtreme Scale, Release 8.6 API Specification |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.Throwable java.lang.Exception com.ibm.websphere.objectgrid.ObjectGridException com.ibm.websphere.objectgrid.osgi.ServiceUpdateException
public class ServiceUpdateException
A ServiceUpdateException is thrown if an OSGi service fails to update to a specific service ranking.
The method getServiceName()
and getServiceRanking()
can
be used to get the service name and the service ranking that it
fails to update to.
Constructor Summary | |
---|---|
ServiceUpdateException(String serviceName,
Integer serviceRanking)
Constructs a new ServiceUpdateException with null as its detail
message. |
|
ServiceUpdateException(String serviceName,
Integer serviceRanking,
String message)
Constructs a new ServiceUpdateException with the specified detail message. |
|
ServiceUpdateException(String serviceName,
Integer serviceRanking,
String message,
Throwable cause)
Constructs a new ServiceUpdateException with the specified detail message and cause. |
|
ServiceUpdateException(String serviceName,
Integer serviceRanking,
Throwable cause)
Constructs a new ServiceUpdateException with a specified cause. |
Method Summary | |
---|---|
String |
getServiceName()
|
Integer |
getServiceRanking()
|
Methods inherited from class com.ibm.websphere.objectgrid.ObjectGridException |
---|
getCause, initCause |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ServiceUpdateException(String serviceName, Integer serviceRanking)
null
as its detail
message. The cause is not initialized, and may subsequently be initialized
by a call to the initCause
method.
serviceName
- the name of the OSGi service that fails to updateserviceRanking
- the ranking of the OSGi service that fails to updateObjectGridException.initCause(Throwable)
public ServiceUpdateException(String serviceName, Integer serviceRanking, String message)
initCause
method.
serviceName
- the name of the OSGi service that fails to updateserviceRanking
- the ranking of the OSGi service that fails to updatemessage
- the detail message. The detail message is saved for later
retrieval by the getMessage
method.ObjectGridException.initCause(Throwable)
,
Throwable.getMessage()
public ServiceUpdateException(String serviceName, Integer serviceRanking, String message, Throwable cause)
Note that the detail message associated with cause
is
not automatically incorporated in this ServiceUpdateException's detail
message.
serviceName
- the name of the OSGi service that fails to updateserviceRanking
- the ranking of the OSGi service that fails to updatemessage
- the detail message (which is saved for later retrieval by the
getMessage
method).cause
- the cause (which is saved for later retrieval by the
getCause
method). (Anull
value is
permitted, and indicates that the cause is nonexistent or
unknown).ObjectGridException.getCause()
,
Throwable.getMessage()
public ServiceUpdateException(String serviceName, Integer serviceRanking, Throwable cause)
(cause==null ? null : cause.toString())
is used (which typically contains the class and detail message of cause
).
This constructor is useful for ServiceUpdateExceptions that are little more
than wrappers for other throwables.
serviceName
- the name of the OSGi service that fails to updateserviceRanking
- the ranking of the OSGi service that fails to updatecause
- is the exception that caused this exception to be thrown,
which is saved for later retrieval by the getCause()
method.
A null
value is permitted and indicates that the cause
is nonexistent or is unknown.ObjectGridException.getCause()
Method Detail |
---|
public String getServiceName()
public Integer getServiceRanking()
|
IBM WebSphereTM eXtreme Scale, Release 8.6 API Specification |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |