Class ResourceNotFoundException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.equipmentrental.equipment_rental_system.exception.ResourceNotFoundException
- All Implemented Interfaces:
Serializable
Thrown when a requested entity cannot be found by its ID.
This is a generic exception used across all service classes when
a lookup by primary key returns no result.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionResourceNotFoundException(String resourceName, Long resourceId) Creates a new exception with a descriptive message. -
Method Summary
Methods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ResourceNotFoundException
-