Documentation
¶
Index ¶
- type Causes
- type RestErr
- func NewBadRequestError(message string) *RestErr
- func NewBadRequestErrorValidationError(message string, causes []Causes) *RestErr
- func NewForbiddenError(message string) *RestErr
- func NewInternalServerError(message string) *RestErr
- func NewNotFoundError(message string) *RestErr
- func NewRestErr(message string, err string, code int, causes []Causes) *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 ¶
Click to show internal directories.
Click to hide internal directories.