All Implemented Interfaces:
Serializable
Direct Known Subclasses:
FacetNotFoundException, ResourceNotFoundException

public class EntityNotFoundException extends NotFoundException
Base exception for "the requested Resource or Facet does not exist" error conditions. The server always throws the more specific leaf (ResourceNotFoundException or FacetNotFoundException); this common superclass lets callers catch either uniformly. Mapped to 404 Not Found by the REST layer.
Author:
Luca Frosini (ISTI - CNR)
See Also:
  • Constructor Details

    • EntityNotFoundException

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

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

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