Documentation
¶
Index ¶
Constants ¶
View Source
const ( ErrorTypeNotFound string = "ERR_NOT_FOUND" ErrTypeNotCreated string = "ERR_NOT_CREATED" ErrTypeNotUpdated string = "ERR_NOT_UPDATED" ErrTypeConflict string = "ERR_CONFLICT" )
Variables ¶
This section is empty.
Functions ¶
func NewConflict ¶
func NewNotCreated ¶
func NewNotFound ¶
func NewNotUpdated ¶ added in v1.4.0
Types ¶
type Error ¶
type Error struct { // Error contains the text of any failed operation // example: employee not found ErrorMessage string `json:"error_message"` // Type contains the text of the type of error // example: not found ErrorType string `json:"error_type"` // contains filtered or unexported fields }
Error represents any error that can be generated by bludgeon swagger:model Error
Click to show internal directories.
Click to hide internal directories.