Documentation ¶
Index ¶
- func GetCode(err error) string
- func GetHttpCode(err error) int
- func New(code string, message string) error
- func NewBadRequest(code string, message string) error
- func NewConflict(code string, message string) error
- func NewForbidden(code string, message string) error
- func NewNotFound(code string, message string) error
- func NewValidation(err error) error
- type Message
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewBadRequest ¶
func NewConflict ¶
func NewForbidden ¶
func NewNotFound ¶
func NewValidation ¶
Returns the first error from a ozzo validation error in a proper way
Types ¶
Click to show internal directories.
Click to hide internal directories.