Class AlreadyPresentException

All Implemented Interfaces:
Serializable
Direct Known Subclasses:
ContextAlreadyPresentException, EntityAlreadyPresentException, QueryTemplateAlreadyPresentException, RelationAlreadyPresentException, SchemaAlreadyPresentException

public class AlreadyPresentException extends ResourceRegistryException
Base exception for "an element with this identity already exists" error conditions across every collection (Context, Type, Instance, Query Template) — specialized per collection (e.g. ContextAlreadyPresentException), and also thrown directly as a generic fallback. Mapped to 409 Conflict by the REST layer.
Author:
Luca Frosini (ISTI - CNR)
See Also:
  • Constructor Details

    • AlreadyPresentException

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

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

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