All Implemented Interfaces:
Serializable
Direct Known Subclasses:
ConsistsOfAlreadyPresentException, IsParentOfAlreadyPresentException, IsRelatedToAlreadyPresentException

public class RelationAlreadyPresentException extends AlreadyPresentException
Base exception for "a relation (ConsistsOf/IsRelatedTo) between this source and target already exists" error conditions. The server always throws the more specific leaf (ConsistsOfAlreadyPresentException or IsRelatedToAlreadyPresentException); 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

    • RelationAlreadyPresentException

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

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

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