Documentation ¶
Index ¶
- type Causes
- type RestErr
- func NewBadRequestError(message string) *RestErr
- func NewBadRequestValidationError(message string, causes []Causes) *RestErr
- func NewForbiddenError(message string) *RestErr
- func NewInternalServerError(message string) *RestErr
- func NewNotFoundError(message string) *RestErr
- func NewRestErr(message, err string, code int, causes []Causes) *RestErr
- func NewUnauthorizedError(message string) *RestErr
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RestErr ¶
type RestErr struct { Message string `json:"message"` Err string `json:"error"` Code int `json:"code"` Causes []Causes `json:"causes"` }
func NewBadRequestError ¶
func NewForbiddenError ¶
func NewInternalServerError ¶
func NewNotFoundError ¶
func NewUnauthorizedError ¶
Click to show internal directories.
Click to hide internal directories.