Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DecodeError ¶
type DecodeError struct {
// contains filtered or unexported fields
}
DecodeError represents an error resulting from trying to decode an HTTP request. It tracks the full field name for which decoding failed.
func NewDecodeError ¶
func NewDecodeError(err error, field string) *DecodeError
NewDecodeError wraps an error (either the initial decoding error or another DecodeError). The current field that failed decoding must be passed in.
func (*DecodeError) Error ¶
func (e *DecodeError) Error() string
Error returns the formatted error message which contains the full field name and the actual decoding error.
type IndexedVerificationFailure ¶
IndexedVerificationFailure represents an issue when verifying a single indexed object e.g. an item in an array.
type IndexedVerificationFailureError ¶
type IndexedVerificationFailureError struct { Message string `json:"message"` Code int `json:"code"` Failures []*IndexedVerificationFailure `json:"failures"` }
IndexedVerificationFailureError wraps a collection of verification failures.
func (*IndexedVerificationFailureError) StatusCode ¶
func (e *IndexedVerificationFailureError) StatusCode() int
Click to show internal directories.
Click to hide internal directories.