Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrUnmarshal = errors.New("unmarshal failed") ErrMissingContentType = errors.New("mime.ParseMediaType failed") )
Functions ¶
Types ¶
type ErrorHandler ¶
type ErrorHandler struct {
JSON FaultyResponseHandler
}
ErrorHandler invokes a function that matches response media type with parse error, ex: JSON<->JsonParserMethod otherwise defaults to general error interpretation.
Click to show internal directories.
Click to hide internal directories.