Package com.sap.cds

Class NotNullConstraintException

All Implemented Interfaces:
Serializable

public class NotNullConstraintException extends CdsDataException
Thrown to indicate that a NOT NULL constraint has been violated during an attempt to insert or update a CdsEntity.
See Also:
  • Constructor Details

    • NotNullConstraintException

      public NotNullConstraintException(List<CdsElement> nonNullableElements, Exception ex)
  • Method Details

    • getElementNames

      public List<String> getElementNames()
      Get list of qualified element names which should not be null
      Returns:
      list of qualified element names
    • getEntityName

      public String getEntityName()
      Get the qualified name of the entity
      Returns:
      qualified name of the entity