Class ObjectAlreadyExistsException

All Implemented Interfaces:
Serializable

public class ObjectAlreadyExistsException extends IdentifiedException

Thrown when an attempt is made to add an object to an IdentifiedCollection, but the collection already has an object with the same id.

See Also:
  • Constructor Details

    • ObjectAlreadyExistsException

      public ObjectAlreadyExistsException(Identified existing, Resource existingResource, Resource newResource)
  • Method Details

    • getExisting

      public Identified getExisting()
      Returns:
      The object that is currently sitting in your place.
    • getExistingResource

      public Resource getExistingResource()
    • getNewResource

      public Resource getNewResource()