Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( // ErrContentNotFound is used to indicate that content at a given address could not be found. ErrContentNotFound = errors.New("content not found") // ErrWitnessesNotFound is used to indicate that no witnesses could not be found. ErrWitnessesNotFound = errors.New("witnesses 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 NewBadRequestf ¶ added in v1.0.0
NewBadRequestf returns a 'bad request' 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.
func NewTransientf ¶ added in v1.0.0
NewTransientf returns a transient 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.