|
||||||||||
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.portal.resolver.exceptions.ResolutionException com.ibm.portal.resolver.exceptions.EntityNotFoundException com.ibm.portal.resolver.exceptions.ServiceNotFoundException
public class ServiceNotFoundException
A service required during the resolution process could not be found
Field Summary | |
---|---|
protected java.lang.String |
service
name of the service that could not be located |
Fields inherited from interface com.ibm.portal.resolver.exceptions.Constants |
---|
SC_BAD_REQUEST, SC_GONE, SC_INTERNAL_SERVER_ERROR, SC_NOT_FOUND, SC_REQUEST_TIMEOUT, SC_SERVICE_UNAVAILABLE, SC_UNAUTHORIZED |
Constructor Summary | |
---|---|
ServiceNotFoundException(java.lang.String aService)
Initializes the exception and identifies the service that could not be found |
|
ServiceNotFoundException(java.lang.String aService,
java.lang.Throwable aCause)
Initializes the exception and identifies the service that could not be found |
Method Summary | |
---|---|
protected java.lang.Object |
getEntity()
Returns the failing entity |
java.lang.String |
getService()
|
int |
getStatus()
Returns as a hint to the client the recommended HTTP status code. |
java.lang.String |
getTitle(java.util.Locale aLocale)
Returns the title of this object in the given locale. |
Methods inherited from class com.ibm.portal.resolver.exceptions.ResolutionException |
---|
findLocalized, findLocalizedStatus, getDescription, getLocales, getLocalized, getLocalized, getLocalizedMessage, getLocalizedStatus, getMessage, getTitle |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected final java.lang.String service
Constructor Detail |
---|
public ServiceNotFoundException(java.lang.String aService)
aService
- identification of the missing servicepublic ServiceNotFoundException(java.lang.String aService, java.lang.Throwable aCause)
aService
- identification of the missing serviceaCause
- root cause of the exceptionMethod Detail |
---|
protected java.lang.Object getEntity()
EntityNotFoundException
getEntity
in class EntityNotFoundException
public java.lang.String getService()
public int getStatus()
ResolutionException
getStatus
in interface LocalizedStatus
getStatus
in class EntityNotFoundException
public java.lang.String getTitle(java.util.Locale aLocale)
Localized
getTitle
in interface Localized
getTitle
in class EntityNotFoundException
aLocale
- the locale for which to retrieve the title, must not
be null
.
null
.
It is up to the invoker of the method to implement an appropriate
fallback mechanism.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |