com.ibm.portal.state.accessors.exceptions
Class ResourceNotFoundException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.ibm.portal.state.exceptions.StateException
              extended by com.ibm.portal.state.accessors.exceptions.ResourceUrlException
                  extended by com.ibm.portal.state.accessors.exceptions.ResourceNotFoundException
All Implemented Interfaces:
Localized, LocalizedStatus, java.io.Serializable
Direct Known Subclasses:
IconNotFoundException

public abstract class ResourceNotFoundException
extends ResourceUrlException
implements LocalizedStatus

Exception which sould be thrown if a resouce was not found.

Since:
5.1
See Also:
Serialized Form

Field Summary
protected  java.lang.String name
          Identification of the resource that could not be located
 
Constructor Summary
ResourceNotFoundException(java.lang.String aName)
          Thrown if the resource could not be found.
ResourceNotFoundException(java.lang.String aName, java.lang.Exception aReason)
          Thrown if the resource could not be found.
 
Method Summary
 java.lang.String getName()
           
 int getStatus()
          Returns a status code that can be evaluated by the handler of the exception implementing LocalizedStatus.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.ibm.portal.Localized
getDescription, getLocales, getTitle
 

Field Detail

name

protected final java.lang.String name
Identification of the resource that could not be located

Constructor Detail

ResourceNotFoundException

public ResourceNotFoundException(java.lang.String aName,
                                 java.lang.Exception aReason)
Thrown if the resource could not be found.

Parameters:
aReason - Reason for not being able to find the resouce
aName - Identification of the resource that could not be located

ResourceNotFoundException

public ResourceNotFoundException(java.lang.String aName)
Thrown if the resource could not be found.

Parameters:
aName - Identification of the resource that could not be located
Method Detail

getName

public java.lang.String getName()
Returns:
Identification of the resource that could not be located

getStatus

public int getStatus()
Description copied from interface: LocalizedStatus
Returns a status code that can be evaluated by the handler of the exception implementing LocalizedStatus. It is up to the handler of the exception how to interpret the status code.

Specified by:
getStatus in interface LocalizedStatus
Returns:
a status code