Documentation ¶
Index ¶
- Variables
- func CauseWithNil(err error) error
- func Errors(errs ...error) error
- func IsConnectionRefused(err error) bool
- func IsConnectionReset(err error) bool
- func IsContextCanceled(err error) bool
- func IsContextCanceledOrExpired(err error) bool
- func IsContextDeadlineExpired(err error) bool
- func IsEOF(err error) bool
- func IsReconcile(err error) bool
- func IsTemporary(err error) bool
- func IsTimeout(err error) bool
- func LogError(logger logging.Logger, msg string, f func() error)
- func Newf(format string, args ...interface{}) error
- func Reconcile() error
- func Section(cause error, format string, args ...interface{}) error
- type Array
- type Causer
Constants ¶
This section is empty.
Variables ¶
var ( Cause = errs.Cause New = errs.New WithStack = errs.WithStack Wrap = errs.Wrap Wrapf = errs.Wrapf WithMessage = errs.WithMessage WithMessagef = errs.WithMessagef )
Functions ¶
func CauseWithNil ¶
CauseWithNil returns Cause of an error. If error returned by Cause is same (no Causer interface implemented), function will return nil instead
func IsConnectionRefused ¶
IsConnectionRefused returns true if the given error is caused by an "connection refused" error.
func IsConnectionReset ¶
IsConnectionReset returns true if the given error is caused by an "connection reset by peer" error.
func IsContextCanceled ¶
IsContextCanceled returns true if the given error is caused by a context cancelation.
func IsContextCanceledOrExpired ¶
IsContextCanceledOrExpired returns true if the given error is caused by a context cancelation or deadline expiration.
func IsContextDeadlineExpired ¶
IsContextDeadlineExpired returns true if the given error is caused by a context deadline expiration.
func IsReconcile ¶
func IsTemporary ¶
IsTemporary returns true if the given error is caused by a temporary error.