Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrRecordNotFound record not found error ErrRecordNotFound errors.Kind = "record not found" // ErrUniqueConstraint duplicate key value violates ErrUniqueConstraint errors.Kind = "unique constraint" // ErrBuilder query builder error ErrBuilder errors.Kind = "query builder" // ErrExecution - ErrExecution errors.Kind = "execution" // ErrScan - ErrScan errors.Kind = "scan" // ErrMigration - ErrMigration errors.Kind = "migration" )
View Source
var KindToHttpStatus = map[errors.Kind]int{ ErrRecordNotFound: http.StatusUnprocessableEntity, ErrUniqueConstraint: http.StatusUnprocessableEntity, ErrBuilder: http.StatusInternalServerError, ErrExecution: http.StatusInternalServerError, ErrScan: http.StatusInternalServerError, ErrMigration: http.StatusInternalServerError, }
KindToHttpStatus -
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.