Skip to content

Commit

Permalink
Add new error for "Violation Check Constraint" (#6992)
Browse files Browse the repository at this point in the history
  • Loading branch information
anilsenay committed Apr 26, 2024
1 parent 207f1ac commit ac59252
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,6 @@ var (
ErrDuplicatedKey = errors.New("duplicated key not allowed")
// ErrForeignKeyViolated occurs when there is a foreign key constraint violation
ErrForeignKeyViolated = errors.New("violates foreign key constraint")
// ErrCheckConstraintViolated occurs when there is a check constraint violation
ErrCheckConstraintViolated = errors.New("violates check constraint")
)

0 comments on commit ac59252

Please sign in to comment.