Documentation ¶
Index ¶
- Variables
- 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 IsTemporary(err error) bool
- func IsTimeout(err error) bool
- func WithMessage(err error, message string) error
Constants ¶
This section is empty.
Variables ¶
Functions ¶
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 IsTemporary ¶
IsTemporary returns true if the given error is caused by a temporary error.
func WithMessage ¶
WithMessage annotates err with a new message. The messages of given error is hidden. If err is nil, WithMessage returns nil.
Types ¶
This section is empty.