org.outerj.daisy.repository
Class CollectionDeletedException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.outerj.daisy.repository.RepositoryException
              extended by org.outerj.daisy.repository.CollectionDeletedException
All Implemented Interfaces:
java.io.Serializable

public class CollectionDeletedException
extends RepositoryException

Thrown if a collection has been removed at the same time someone was editing a document that belonged to the removed collection. When that document is saved, this Exception will be thrown.

The id of the removed collection can be fetched using the getMessage method.

See Also:
Serialized Form

Constructor Summary
CollectionDeletedException()
           
CollectionDeletedException(java.lang.String message)
           
CollectionDeletedException(java.lang.String message, java.lang.Throwable cause)
           
 
Method Summary
 java.lang.String getMessage()
          gets the id of the deleted collection.
 
Methods inherited from class org.outerj.daisy.repository.RepositoryException
getState
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, 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

CollectionDeletedException

public CollectionDeletedException()

CollectionDeletedException

public CollectionDeletedException(java.lang.String message)

CollectionDeletedException

public CollectionDeletedException(java.lang.String message,
                                  java.lang.Throwable cause)
Method Detail

getMessage

public java.lang.String getMessage()
gets the id of the deleted collection.

Overrides:
getMessage in class java.lang.Throwable


Copyright © -2012 . All Rights Reserved.