org.alfresco.repo.content
Class ContentExistsException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.alfresco.error.AlfrescoRuntimeException
                  extended by org.alfresco.repo.content.ContentExistsException
All Implemented Interfaces:
java.io.Serializable

public class ContentExistsException
extends org.alfresco.error.AlfrescoRuntimeException

Exception produced when a request is made to write content to a location already in use, either by content being written or previously written.

Since:
2.1
See Also:
ContentStore.getWriter(ContentContext), Serialized Form

Constructor Summary
ContentExistsException(ContentStore contentStore, java.lang.String contentUrl)
           
ContentExistsException(ContentStore contentStore, java.lang.String contentUrl, java.lang.String msg)
           
 
Method Summary
 ContentStore getContentStore()
           
 java.lang.String getContentUrl()
           
 
Methods inherited from class org.alfresco.error.AlfrescoRuntimeException
create, create, getMsgId, getMsgParams, makeRuntimeException
 
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
 

Constructor Detail

ContentExistsException

public ContentExistsException(ContentStore contentStore,
                              java.lang.String contentUrl)
Parameters:
contentStore - the originating content store
contentUrl - the offending content URL

ContentExistsException

public ContentExistsException(ContentStore contentStore,
                              java.lang.String contentUrl,
                              java.lang.String msg)
Parameters:
contentStore - the originating content store
contentUrl - the offending content URL
Method Detail

getContentStore

public ContentStore getContentStore()

getContentUrl

public java.lang.String getContentUrl()


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.