org.bitrepository.service.exception
Class RequestHandlerException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.bitrepository.service.exception.RequestHandlerException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
IdentifyContributorException, IllegalOperationException, InvalidMessageException

public abstract class RequestHandlerException
extends Exception

The exception for the request handlers.

See Also:
Serialized Form

Constructor Summary
RequestHandlerException(ResponseInfo rInfo, String collectionId)
          Constructor.
RequestHandlerException(ResponseInfo rInfo, String collectionId, Exception e)
          Constructor.
 
Method Summary
 String getCollectionId()
           
 ResponseInfo getResponseInfo()
           
 void setCollectionId(String collectionId)
           
 String toString()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RequestHandlerException

public RequestHandlerException(ResponseInfo rInfo,
                               String collectionId)
Constructor.

Parameters:
rInfo - The ResponseInfo for this class to wrap.
collectionID - The id of the collection. Use 'null' if no collection is relevant.

RequestHandlerException

public RequestHandlerException(ResponseInfo rInfo,
                               String collectionId,
                               Exception e)
Constructor.

Parameters:
rInfo - The ResponseInfo for this class to wrap.
collectionID - The id of the collection. Use 'null' if no collection is relevant.
e - The exception to wrap into the StackTrace.
Method Detail

getResponseInfo

public ResponseInfo getResponseInfo()
Returns:
The wrapped ResponseInfo.

getCollectionId

public String getCollectionId()
Returns:
The id of the collection regarding this exception.

setCollectionId

public void setCollectionId(String collectionId)
Parameters:
collectionId - The id of the collection.

toString

public String toString()
Overrides:
toString in class Throwable


Copyright © 2010-2013 The State and University Library, The Royal Library and The State Archives, Denmark. All Rights Reserved.