+

Search Tips   |   Advanced Search

 PREV CLASS   NEXT CLASS
Tree 
SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD

com.ibm.portal.resolver.exceptions
Class EntityNotFoundException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.ibm.portal.resolver.exceptions.ResolutionException
              extended by com.ibm.portal.resolver.exceptions.EntityNotFoundException
All Implemented Interfaces:
Localized, LocalizedStatus, Constants, java.io.Serializable
Direct Known Subclasses:
EntityDeletedException, ResourceNotFoundException, ServiceNotFoundException
public abstract class EntityNotFoundException
extends ResolutionException

An entity (service, resource) could not be found

Since:
7.0
See Also:
Serialized Form

Field Summary
 
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
protected EntityNotFoundException()
           
protected EntityNotFoundException(java.lang.Throwable th)
           
 
Method Summary
protected abstract  java.lang.Object getEntity()
          Return the failing entity
 int getStatus()
          Return as a hint to the client the recommended HTTP status code.
 java.lang.String getTitle(java.util.Locale aLocale)
          Return 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
 

Constructor Detail

EntityNotFoundException

protected EntityNotFoundException()

EntityNotFoundException

protected EntityNotFoundException(java.lang.Throwable th)
Method Detail

getStatus

public int getStatus()
Description copied from class: ResolutionException
Returns 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 ResolutionException
Returns:
HTTP status code

getEntity

protected abstract java.lang.Object getEntity()
Returns the failing entity

Returns:
the failed entity

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.

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
Tree 
SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD