Skip to content

Commit c010e95

Browse files
anilsenaya631807682
authored andcommitted
Add new error for "Violation Check Constraint"
1 parent be95574 commit c010e95

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

error_translator.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ var errCodes = map[string]error{
1212
"23505": gorm.ErrDuplicatedKey,
1313
"23503": gorm.ErrForeignKeyViolated,
1414
"42703": gorm.ErrInvalidField,
15+
"23514": gorm.ErrCheckConstraintViolated,
1516
}
1617

1718
type ErrMessage struct {

0 commit comments

Comments
 (0)