org.bitrepository.service.exception
Class IllegalOperationException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.bitrepository.service.exception.RequestHandlerException
              extended by org.bitrepository.service.exception.IllegalOperationException
All Implemented Interfaces:
Serializable

public class IllegalOperationException
extends RequestHandlerException

Exception for telling, that a given operation is illegal. This might involve: deleting with a invalid checksum, performing the 'Get' operation on a ChecksumPillar, etc.

See Also:
Serialized Form

Constructor Summary
IllegalOperationException(ResponseInfo rInfo, String collectionId)
          Constructor.
IllegalOperationException(ResponseInfo rInfo, String collectionId, Exception e)
          Constructor.
 
Method Summary
 
Methods inherited from class org.bitrepository.service.exception.RequestHandlerException
getCollectionId, getResponseInfo, setCollectionId, 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

IllegalOperationException

public IllegalOperationException(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.

IllegalOperationException

public IllegalOperationException(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.


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