Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ErrorResponse ¶
type ErrorResponse struct { Code string `json:"code"` Message string `json:"message"` ErrorFields []string `json:"errorFields,omitempty"` StatusCode int `json:"statusCode"` }
func (*ErrorResponse) Error ¶
func (er *ErrorResponse) Error() string
func (*ErrorResponse) GetCode ¶
func (er *ErrorResponse) GetCode(code string) string
func (*ErrorResponse) HandleValidationError ¶
func (er *ErrorResponse) HandleValidationError(err error) []string
Click to show internal directories.
Click to hide internal directories.