Package com.sap.cds

Class UniqueConstraintException

All Implemented Interfaces:
Serializable

public class UniqueConstraintException extends CdsDataException
Thrown by the data store, if a unique constraint is violated when executing an insert, upsert or update statement.
See Also:
  • Constructor Details

  • Method Details

    • getEntityName

      public String getEntityName()
      Get entity qualified name
      Returns:
      entity qualified name
    • getElementValues

      public Map<String,Object> getElementValues()
      Get map of element names and values violating the unique constraint
      Returns:
      map of element names and values