Class NotFoundException

All Implemented Interfaces:
Serializable

public class NotFoundException extends SuperException
Represents an exception indicating that the requested object wasn't found. Extends the SuperException class and sets the HTTP status to 404 Not Found.
Since:
0.1.0
See Also:
  • Constructor Details

    • NotFoundException

      public NotFoundException(String objectName)
      Constructs a new NotFoundException with the given object name.
      Parameters:
      objectName - The name of the object that wasn't found.
    • NotFoundException

      public NotFoundException(String objectName, Object id)
      Constructs a new NotFoundException with the given object name and expected ID.
      Parameters:
      objectName - The name of the object that wasn't found.
      id - The id of the object that wasn't found.
    • NotFoundException

      public NotFoundException(Class<?> objectClass, Object id)
      Constructs a new NotFoundException with the given object class and expected ID.
      Parameters:
      objectClass - The class of the object that wasn't found.
      id - The id of the object that wasn't found.