Class EntityNotFoundException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.example.crmedu.domain.exception.EntityNotFoundException
All Implemented Interfaces:
Serializable

public class EntityNotFoundException extends RuntimeException
Exception thrown when an entity with a specific id is not found. Extends RuntimeException.
See Also:
  • Constructor Details

    • EntityNotFoundException

      public EntityNotFoundException(Class<?> entityClass, Object entityId)
      Constructs a new EntityNotFound with a formatted message.
      Parameters:
      entityClass - the class of the entity that caused the exception
      entityId - the id of the non-existing entity