Skip to content

Commit

Permalink
Add new error for "Violation Check Constraint"
Browse files Browse the repository at this point in the history
  • Loading branch information
anilsenay authored and a631807682 committed May 8, 2024
1 parent be95574 commit c010e95
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions error_translator.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ var errCodes = map[string]error{
"23505": gorm.ErrDuplicatedKey,
"23503": gorm.ErrForeignKeyViolated,
"42703": gorm.ErrInvalidField,
"23514": gorm.ErrCheckConstraintViolated,
}

type ErrMessage struct {
Expand Down

0 comments on commit c010e95

Please sign in to comment.