Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrParseRequest = ExternalError{ Code: 1, Message: "unable to parse request", } ErrValidateRequest = ExternalError{ Code: 2, Message: "unable to validate request", } )
Functions ¶
This section is empty.
Types ¶
type ExternalError ¶
type ExternalError struct { Code int `example:"1"` Message string `example:"Unable to parse request"` Err string `example:"Extended description of error" json:"details,omitempty"` }
func New ¶
func New(code int, message string) *ExternalError
func NewFromBase ¶
func NewFromBase(base ExternalError, details error) *ExternalError
func (*ExternalError) Error ¶
func (e *ExternalError) Error() string
Click to show internal directories.
Click to hide internal directories.