Package edu.ucsb.cs156.dining.errors
Class EntityNotFoundException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
edu.ucsb.cs156.dining.errors.EntityNotFoundException
- All Implemented Interfaces:
 Serializable
This is an error class for a custom RuntimeException in Java that is used to indicate
 when an entity of a specific type with a given ID is not found.
- See Also:
 
- 
Constructor Summary
ConstructorsConstructorDescriptionEntityNotFoundException(Class<?> entityType, Object id) Constructor for the exception - 
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString 
- 
Constructor Details
- 
EntityNotFoundException
Constructor for the exception- Parameters:
 entityType- The class of the entity that was not found, e.g. User.classid- the id that was being searched for
 
 -