errors

package
v0.0.0-...-a9d2207 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 14, 2025 License: Apache-2.0 Imports: 1 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrTemporary   = errors.New("temporary error")
	ErrPermanent   = errors.New("permanent error")
	ErrUnreachable = errors.New("unreachable code")

	ErrRequestCreation     = errors.New("request creation error")
	ErrBodyMarshalConflict = errors.New("body and marshal body conflict")

	ErrNetwork   = errors.New("network error")
	ErrTimeout   = errors.New("timeout error")
	ErrBadStatus = errors.New("bad status code")
)

Functions

func Is

func Is(err, target error) bool

Is reports whether any error in err's chain is an instance of target.

func IsTemporary

func IsTemporary(err error) bool

IsTemporary returns true if the error is considered temporary and can be retried.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL