Class EntityExistsException

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

public class EntityExistsException extends RuntimeException
Exception thrown when an entity with a unique field constraint already exists. Extends RuntimeException.
See Also:
  • Constructor Details

    • EntityExistsException

      public EntityExistsException(Class<?> entityClass, String field)
      Constructs a new EntityExistsException with a formatted message.
      Parameters:
      entityClass - the class of the entity that caused the exception
      field - the name of the field that violates the uniqueness constraint