All Implemented Interfaces:
Serializable
Direct Known Subclasses:
ConsistsOfNotFoundException, IsParentOfNotFoundException, IsRelatedToNotFoundException

public class RelationNotFoundException extends NotFoundException
Base exception for "the requested relation does not exist" error conditions. The server always throws the more specific leaf (ConsistsOfNotFoundException or IsRelatedToNotFoundException); this common superclass lets callers catch either uniformly, and is also thrown directly by client-side error mapping as a generic fallback. Mapped to 404 Not Found by the REST layer.
Author:
Luca Frosini (ISTI - CNR)
See Also:
  • Constructor Details

    • RelationNotFoundException

      public RelationNotFoundException(String message)
      Instantiates a new relation not found exception.
      Parameters:
      message - the message
    • RelationNotFoundException

      public RelationNotFoundException(Throwable cause)
      Instantiates a new relation not found exception.
      Parameters:
      cause - the cause
    • RelationNotFoundException

      public RelationNotFoundException(String message, Throwable cause)
      Instantiates a new relation not found exception.
      Parameters:
      message - the message
      cause - the cause