Class EntityNotFoundException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.example.crmedu.domain.exception.EntityNotFoundException
- All Implemented Interfaces:
Serializable
Exception thrown when an entity with a specific id is not found. Extends
RuntimeException
.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionEntityNotFoundException
(Class<?> entityClass, Object entityId) Constructs a newEntityNotFound
with a formatted message. -
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
Constructs a newEntityNotFound
with a formatted message.- Parameters:
entityClass
- the class of the entity that caused the exceptionentityId
- the id of the non-existing entity
-