corelibraries-devexpress-dot-xpo-dot-db-dot-exceptions.md
An exception that is thrown when a key or index constraint fails.
Namespace : DevExpress.Xpo.DB.Exceptions
Assembly : DevExpress.Data.v25.2.dll
NuGet Package : DevExpress.Data
public class ConstraintViolationException :
SqlExecutionErrorException
Public Class ConstraintViolationException
Inherits SqlExecutionErrorException
This exception is thrown whenever an SQL statement being executed violates any of the following:
Solution:
SqlExecutionErrorException.Sql and SqlExecutionErrorException.Parameters parameter descriptions for additional information about the erroneous SQL statement.Object Exception SqlExecutionErrorException ConstraintViolationException
See Also