Class ContentExistsException

  • All Implemented Interfaces:
    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
    Author:
    Derek Hulley
    See Also:
    ContentStore.getWriter(ContentContext), Serialized Form
    • Constructor Detail

      • ContentExistsException

        public ContentExistsException​(org.alfresco.repo.content.ContentStore contentStore,
                                      String contentUrl)
        Parameters:
        contentStore - the originating content store
        contentUrl - the offending content URL
      • ContentExistsException

        public ContentExistsException​(org.alfresco.repo.content.ContentStore contentStore,
                                      String contentUrl,
                                      String msg)
        Parameters:
        contentStore - the originating content store
        contentUrl - the offending content URL
    • Method Detail

      • getContentStore

        public org.alfresco.repo.content.ContentStore getContentStore()
      • getContentUrl

        public String getContentUrl()