Package org.fcrepo.kernel.api.exception
Class ConcurrentUpdateException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.fcrepo.kernel.api.exception.RepositoryRuntimeException
-
- org.fcrepo.kernel.api.exception.ConcurrentUpdateException
-
- All Implemented Interfaces:
Serializable
public class ConcurrentUpdateException extends RepositoryRuntimeException
This exception indicates that a resource could not be modified because it is currently being modified by another transaction.- Author:
- pwinckles
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ConcurrentUpdateException(String resource, String conflictingTx, String existingTx)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetConflictingTransactionId()StringgetExistingTransactionId()StringgetResponseMessage()-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
ConcurrentUpdateException
public ConcurrentUpdateException(String resource, String conflictingTx, String existingTx)
Constructor- Parameters:
resource- the Fedora responseconflictingTx- the transaction id attempting to lock the resourceexistingTx- the transaction id holding the resource
-
-
Method Detail
-
getResponseMessage
public String getResponseMessage()
-
getExistingTransactionId
public String getExistingTransactionId()
-
getConflictingTransactionId
public String getConflictingTransactionId()
-
-