Skip to content

Commit ac59252

Browse files
authored
Add new error for "Violation Check Constraint" (#6992)
1 parent 207f1ac commit ac59252

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

errors.go

+2
Original file line numberDiff line numberDiff line change
@@ -49,4 +49,6 @@ var (
4949
ErrDuplicatedKey = errors.New("duplicated key not allowed")
5050
// ErrForeignKeyViolated occurs when there is a foreign key constraint violation
5151
ErrForeignKeyViolated = errors.New("violates foreign key constraint")
52+
// ErrCheckConstraintViolated occurs when there is a check constraint violation
53+
ErrCheckConstraintViolated = errors.New("violates check constraint")
5254
)

0 commit comments

Comments
 (0)