Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNoRowsAffected = errors.New("no rows affected")
ErrNoRowsAffected is sent whenever there is a successful query, but no rows were affected with the query.
View Source
var ErrNotFound = errors.New("not found")
ErrNotFound is returned is a resource cannot be found.
Functions ¶
This section is empty.
Types ¶
type Message ¶
type Message struct {
// The error code
// in: body
Code int `json:"code"`
// The error message
// in: body
Message string `json:"message"`
// The error itself coming from the backend
// in: body
Error string `json:"error"`
}
Message represents an error message. swagger:response
type QueryError ¶
QueryError defines an error which occurs when doing database operations.
func (*QueryError) Error ¶
func (e *QueryError) Error() string
func (*QueryError) Unwrap ¶
func (e *QueryError) Unwrap() error
Unwrap unwraps the query error and returns the internal error.
Click to show internal directories.
Click to hide internal directories.