Documentation ¶
Overview ¶
Package errors provides custom error types used within restic.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Errorf = errors.Errorf
Errorf creates an error based on a format string and values. Wrapped so that this package does not appear in the stack trace.
View Source
var New = errors.New
New creates a new error based on message. Wrapped so that this package does not appear in the stack trace.
View Source
var Wrap = errors.Wrap
Wrap wraps an error retrieved from outside of restic. Wrapped so that this package does not appear in the stack trace.
View Source
var Wrapf = errors.Wrapf
Wrapf returns an error annotating err with the format specifier. If err is nil, Wrapf returns nil.
Functions ¶
func Cause ¶
Cause returns the cause of an error. It will also unwrap certain errors, e.g. *url.Error returned by the net/http client.
Types ¶
Click to show internal directories.
Click to hide internal directories.