|
|
PREV CLASS
NEXT CLASS
FRAMES
NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD |
com.ibm.portal.resolver.exceptions
Class ServiceNotFoundException
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
- All Implemented Interfaces:
- Localized, LocalizedStatus, Constants, java.io.Serializable
- Direct Known Subclasses:
- ServiceHandlerNotFoundException
public class ServiceNotFoundException
- extends EntityNotFoundException
A service required during the resolution process could not be found
- Since:
- 7.0
- See Also:
- Serialized Form
Field Summary
|
protected java.lang.String |
service
name of the service that could not be located |
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()
Return 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 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 |
service
protected final java.lang.String service
- name of the service that could not be located
ServiceNotFoundException
public ServiceNotFoundException(java.lang.String aService)
- Initializes the exception and identifies the service that could not be
found
- Parameters:
- aService - identification of the missing service
ServiceNotFoundException
public ServiceNotFoundException(java.lang.String aService,
java.lang.Throwable aCause)
- Initializes the exception and identifies the service that could not be
found
- Parameters:
- aService - identification of the missing service
- aCause - root cause of the exception
getEntity
protected java.lang.Object getEntity()
- Description copied from class: EntityNotFoundException
- Returns the failing entity
- Specified by:
- getEntity in class EntityNotFoundException
- Returns:
- the failed entity
getService
public java.lang.String getService()
- Returns:
- Returns the service.
getStatus
public int getStatus()
- Description copied from class: ResolutionException
- Return as a hint to the client the recommended HTTP status code.
Subclasses of this exception are advised to override this method to
provide for more refined error codes.
- Specified by:
- getStatus in interface LocalizedStatus
- Overrides:
- getStatus in class EntityNotFoundException
- Returns:
- HTTP status code
getTitle
public java.lang.String getTitle(java.util.Locale aLocale)
- Description copied from interface: Localized
- Returns the title of this object in the given locale.
- Specified by:
- getTitle in interface Localized
- Overrides:
- getTitle in class EntityNotFoundException
- Parameters:
- aLocale - the locale for which to retrieve the title, must not
be null.
- Returns:
- the title of this node in the given locale. If a title is not
available in the given locale, this method will return 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 |