Class DynamicModelDuplicateDataException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
io.jmix.dynmodel.DynamicModelDuplicateDataException
All Implemented Interfaces:
Serializable

public class DynamicModelDuplicateDataException extends RuntimeException
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 Details

    • DynamicModelDuplicateDataException

      public DynamicModelDuplicateDataException(String entityName, String constraintName, List<String> attributeNames)
  • Method Details

    • getEntityName

      public String getEntityName()
      Returns:
      logical name of the entity that owns the constraint
    • getConstraintName

      public String getConstraintName()
      Returns:
      logical name of the unique constraint
    • getAttributeNames

      public List<String> getAttributeNames()
      Returns:
      logical names of the attributes participating in the constraint