Documentation
¶
Index ¶
- type Causes
- type Errs
- func NewBadRequestErrs(message string) *Errs
- func NewBadRequestValidationErrs(message string, causes []Causes) *Errs
- func NewErrs(message, err string, code int, causes []Causes) *Errs
- func NewForbiddenErrs(message string) *Errs
- func NewInternalServerErrs(message string) *Errs
- func NewNotFoundErrs(message string) *Errs
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Errs ¶
type Errs struct { Message string `json:"message"` Err string `json:"err"` Code int `json:"code"` Causes []Causes `json:"causes"` }
func NewBadRequestErrs ¶
NewBadRequestErrs create a new bad request error
func NewBadRequestValidationErrs ¶
NewBadRequestValidationErrs create a new bad request validation error
func NewForbiddenErrs ¶
NewForbiddenErrs create a new forbidden error
func NewInternalServerErrs ¶
NewInternalServerErrs create a new internal server error
func NewNotFoundErrs ¶
NewNotFoundErrs create a new not found error
Click to show internal directories.
Click to hide internal directories.