Class EntityNotFoundException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
edu.ucsb.cs156.jobs.errors.EntityNotFoundException
All Implemented Interfaces:
Serializable

public class EntityNotFoundException extends RuntimeException
RuntimeException indicating that an entity of a specific type with a given id was not found. Mapped to a 404 by JobsController.
See Also:
  • Constructor Details

    • EntityNotFoundException

      public EntityNotFoundException(Class<?> entityType, Object id)
      Constructor for the exception
      Parameters:
      entityType - The class of the entity that was not found, e.g. Job.class
      id - the id that was being searched for