com.ibm.portal.resolver.exceptions
Class URINotFoundException

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
                  extended by com.ibm.portal.resolver.exceptions.ResourceNotFoundException
                      extended by com.ibm.portal.resolver.exceptions.URINotFoundException
All Implemented Interfaces:
Localized, LocalizedStatus, Addressable, Constants, java.io.Serializable

public class URINotFoundException
extends ResourceNotFoundException
implements Addressable

An objectID could not be located

Since:
7.0
See Also:
Serialized Form

Field Summary
protected  java.net.URI uri
          object URI that could not be found
 
Fields inherited from interface com.ibm.portal.resolver.data.Addressable
EMPTY_PARAMETERS
 
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
URINotFoundException(java.net.URI aURI)
          Initializes the exception and specifies the objectID of the missing object
URINotFoundException(java.net.URI aURI, java.lang.Throwable th)
          Initializes the exception and specifies the objectID of the missing object and a reason for the exception
 
Method Summary
protected  java.lang.Object getEntity()
          Returns the failing entity
 java.util.Map<java.lang.String,java.lang.String[]> getParameters()
           Returns an potentially unmodifiable version of the parameters used to address the object, never null, but potentially the empty map.
 java.net.URI getURI()
          Returns the unique identifier of the object.
 
Methods inherited from class com.ibm.portal.resolver.exceptions.EntityNotFoundException
getStatus, getTitle
 
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

uri

protected final java.net.URI uri
object URI that could not be found

Constructor Detail

URINotFoundException

public URINotFoundException(java.net.URI aURI)
Initializes the exception and specifies the objectID of the missing object

Parameters:
aID - objectID, not null

URINotFoundException

public URINotFoundException(java.net.URI aURI,
                            java.lang.Throwable th)
Initializes the exception and specifies the objectID of the missing object and a reason for the exception

Parameters:
aID - objectID, not null
th - original exception
Method Detail

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

getParameters

public java.util.Map<java.lang.String,java.lang.String[]> getParameters()
Description copied from interface: Addressable

Returns an potentially unmodifiable version of the parameters used to address the object, never null, but potentially the empty map.

The key is of type String, the values of type String[]

Specified by:
getParameters in interface Addressable
Returns:
parameter map

getURI

public java.net.URI getURI()
Description copied from interface: Addressable
Returns the unique identifier of the object. The URI must contain valid scheme information and cannot be just a relative URL.

Specified by:
getURI in interface Addressable
Returns:
URI of the object, never null.