Class ResourceConflictException

All Implemented Interfaces:
Serializable

public class ResourceConflictException extends RepositoryException
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 Details

    • ResourceConflictException

      public ResourceConflictException(ILocation existingLocation, ILocation modifiedLocation)
      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 message
      cause - exception cause
  • Method Details

    • getExistingLocation

      public ILocation getExistingLocation()
      Existing location.
      Returns:
      location
    • getModifiedLocation

      public ILocation getModifiedLocation()
      Modified location.
      Returns:
      location