Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrContentNotFound is used to indicate that content at a given address could not be found. ErrContentNotFound = errors.New("content not found") )
Functions ¶
func IsBadRequest ¶ added in v0.1.3
IsBadRequest returns true if the given error is a 'bad request' error.
func IsTransient ¶
IsTransient returns true if the given error is a 'transient' error.
func NewBadRequest ¶ added in v0.1.3
NewBadRequest returns a 'bad request' error that wraps the given error in order to indicate to the caller that the request was invalid.
func NewTransient ¶
NewTransient returns a transient error that wraps the given error in order to indicate to the caller that a retry may resolve the problem, whereas a non-transient (persistent) error will always fail with the same outcome if retried.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.