Documentation ¶
Index ¶
- type RestErr
- func NewBadRequestError(message string) *RestErr
- func NewConflictError(message string) *RestErr
- func NewForbiddenError(message string) *RestErr
- func NewInternalServerError(message string, err error) *RestErr
- func NewNotFoundError(message string) *RestErr
- func NewRestError(message string, status int, error string) *RestErr
- func NewRestErrorFromBytes(bytes []byte) (*RestErr, error)
- 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"` Status int `json:"status"` Error string `json:"error"` Causes []interface{} `json:"causes,omitempty"` }
func NewBadRequestError ¶
func NewConflictError ¶ added in v1.5.1
func NewForbiddenError ¶
func NewInternalServerError ¶
func NewNotFoundError ¶
func NewRestErrorFromBytes ¶
func NewUnauthorizedError ¶
Click to show internal directories.
Click to hide internal directories.