Class EntityExistsException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.example.crmedu.domain.exception.EntityExistsException
- All Implemented Interfaces:
Serializable
Exception thrown when an entity with a unique field constraint already exists. Extends
RuntimeException
.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionEntityExistsException
(Class<?> entityClass, String field) Constructs a newEntityExistsException
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
-
EntityExistsException
Constructs a newEntityExistsException
with a formatted message.- Parameters:
entityClass
- the class of the entity that caused the exceptionfield
- the name of the field that violates the uniqueness constraint
-