Package org.alfresco.repo.content
Class ContentExistsException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.alfresco.error.AlfrescoRuntimeException
-
- org.alfresco.repo.content.ContentExistsException
-
- All Implemented Interfaces:
Serializable
public class ContentExistsException extends org.alfresco.error.AlfrescoRuntimeExceptionException 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 Summary
Constructors Constructor Description ContentExistsException(org.alfresco.repo.content.ContentStore contentStore, String contentUrl)ContentExistsException(org.alfresco.repo.content.ContentStore contentStore, String contentUrl, String msg)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.alfresco.repo.content.ContentStoregetContentStore()StringgetContentUrl()-
Methods inherited from class org.alfresco.error.AlfrescoRuntimeException
create, create, getMsgId, getMsgParams, getNumericalId, getRootCause, makeRuntimeException
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
ContentExistsException
public ContentExistsException(org.alfresco.repo.content.ContentStore contentStore, String contentUrl)- Parameters:
contentStore- the originating content storecontentUrl- the offending content URL
-
-
Method Detail
-
getContentStore
public org.alfresco.repo.content.ContentStore getContentStore()
-
getContentUrl
public String getContentUrl()
-
-