All Implemented Interfaces:
Serializable
Direct Known Subclasses:
FacetAlreadyPresentException, ResourceAlreadyPresentException

public class EntityAlreadyPresentException extends AlreadyPresentException
Base exception for "a Resource or Facet with this identity already exists" error conditions. The server always throws the more specific leaf (ResourceAlreadyPresentException or FacetAlreadyPresentException); this common superclass lets callers catch either uniformly. Mapped to 409 Conflict by the REST layer.
Author:
Luca Frosini (ISTI - CNR)
See Also:
  • Constructor Details

    • EntityAlreadyPresentException

      public EntityAlreadyPresentException(String message)
      Instantiates a new entity already present exception.
      Parameters:
      message - the message
    • EntityAlreadyPresentException

      public EntityAlreadyPresentException(Throwable cause)
      Instantiates a new entity already present exception.
      Parameters:
      cause - the cause
    • EntityAlreadyPresentException

      public EntityAlreadyPresentException(String message, Throwable cause)
      Instantiates a new entity already present exception.
      Parameters:
      message - the message
      cause - the cause