Package io.jmix.dynmodel
Class DynamicModelDuplicateDataException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
io.jmix.dynmodel.DynamicModelDuplicateDataException
- All Implemented Interfaces:
Serializable
Thrown during dynamic model apply when a unique constraint cannot be created because the existing data
already contains duplicate values for the participating attributes.
Carries logical names only (entity, constraint and attribute names as declared in the model) so the UI can present a user-friendly message without leaking physical table or column identifiers.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDynamicModelDuplicateDataException(String entityName, String constraintName, List<String> attributeNames) -
Method Summary
Modifier and TypeMethodDescriptionMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
DynamicModelDuplicateDataException
-
-
Method Details
-
getEntityName
- Returns:
- logical name of the entity that owns the constraint
-
getConstraintName
- Returns:
- logical name of the unique constraint
-
getAttributeNames
- Returns:
- logical names of the attributes participating in the constraint
-