Class ResourceConflictException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.polarion.platform.service.repository.RepositoryException
com.polarion.platform.service.repository.ResourceConflictException
- All Implemented Interfaces:
Serializable
Exception raised when there was a conflict while resource was
modified.
We use two locations, but in most applications they will differ only by revision. Conflict occurs when modified location (on which modification was based) is older than existing location.
- Author:
- Stepan Roh, Polarion Software
- See Also:
-
Constructor Summary
ConstructorDescriptionResourceConflictException
(ILocation existingLocation, ILocation modifiedLocation) Exception without message and cause.ResourceConflictException
(ILocation existingLocation, ILocation modifiedLocation, String message) Exception without message and with cause.ResourceConflictException
(ILocation existingLocation, ILocation modifiedLocation, String message, Throwable cause) Exception with message and cause.ResourceConflictException
(ILocation existingLocation, ILocation modifiedLocation, Throwable cause) Exception without message and with cause. -
Method Summary
Modifier and TypeMethodDescriptionExisting location.Modified location.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ResourceConflictException
Exception without message and cause.- Parameters:
existingLocation
- existing location (should be absolute if possible)modifiedLocation
- modified location (should be absolute if possible)
-
ResourceConflictException
public ResourceConflictException(ILocation existingLocation, ILocation modifiedLocation, String message) Exception without message and with cause.- Parameters:
existingLocation
- existing (old) location (should be absolute if possible)modifiedLocation
- modified location (should be absolute if possible)message
- detail message
-
ResourceConflictException
public ResourceConflictException(ILocation existingLocation, ILocation modifiedLocation, Throwable cause) Exception without message and with cause.- Parameters:
existingLocation
- existing (old) location (should be absolute if possible)modifiedLocation
- modified location (should be absolute if possible)cause
- exception cause
-
ResourceConflictException
public ResourceConflictException(ILocation existingLocation, ILocation modifiedLocation, String message, Throwable cause) Exception with message and cause.- Parameters:
existingLocation
- existing (old) location (should be absolute if possible)modifiedLocation
- modified location (should be absolute if possible)message
- detail messagecause
- exception cause
-
-
Method Details
-
getExistingLocation
Existing location.- Returns:
- location
-
getModifiedLocation
Modified location.- Returns:
- location
-