Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExtractStr ¶
ExtractStr is used to extract error message
Types ¶
type CheckConstraint ¶
type CheckConstraint struct {
Message string `json:"message"`
Field string `json:"field"`
Err error `json:"err"`
}
CheckConstraint error is for handling for check constrait errors
func (CheckConstraint) Error ¶
func (e CheckConstraint) Error() string
type ForeignKeyConstraint ¶
type ForeignKeyConstraint struct {
Message string `json:"message"`
Field string `json:"field"`
Err error `json:"err"`
}
ForeignKeyConstraint error is for handling for check constrait errors
func (ForeignKeyConstraint) Error ¶
func (e ForeignKeyConstraint) Error() string
type UniqueConstraint ¶
type UniqueConstraint struct {
Message string `json:"message"`
Field string `json:"field"`
Err error `json:"err"`
}
UniqueConstraint error is for handling for unique constrait errors
func (UniqueConstraint) Error ¶
func (e UniqueConstraint) Error() string
Click to show internal directories.
Click to hide internal directories.