Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrAlreadyExists error = errors.New("Already exists.")
ErrAlreadyExists is error for case when some value is already exists
View Source
var ErrBadParams error = errors.New("Bad params.")
ErrBadRequest is error for case when bad request
View Source
var ErrBadRequest error = errors.New("Bad request.")
ErrBadRequest is error for case when bad request
View Source
var ErrEmptyParams error = errors.New("Empty params.")
ErrEmptyParams is error for case when params are empty
View Source
var ErrInternal error = errors.New("Internal error.")
ErrInternal is error for case when smth went wrong
View Source
var ErrNotFound error = errors.New("Not found.")
ErrNotFound is error for case when entity not found
View Source
var ErrNotSet error = errors.New("Not set.")
ErrNotSet is error for case when some thing is not set
View Source
var ErrTokenHasExpired error = errors.New("Token has expired.")
Functions ¶
This section is empty.
Types ¶
type ErrAlreadyExistsList ¶
type ErrAlreadyExistsList struct {
*ErrList
}
func NewErrAlreadyExistsList ¶
func NewErrAlreadyExistsList(message string, list map[int]interface{}) *ErrAlreadyExistsList
type ErrNotFoundList ¶
type ErrNotFoundList struct {
*ErrList
}
func NewErrNotFoundList ¶
func NewErrNotFoundList(message string, list map[int]interface{}) *ErrNotFoundList
Click to show internal directories.
Click to hide internal directories.