errdefs

package
v0.2.13 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2024 License: Apache-2.0 Imports: 3 Imported by: 1

Documentation

Overview

Package errdefs defines the common errors used throughout service.

Use with errors.Wrap and error.Wrapf to add context to an error.

To detect an error class, use the errors.Is functions to tell whether an error is of a certain type.

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrIllegalParameter = errors.New("ERR_ILLEGAL_PARAMETER")
	ErrUnauthorized     = errors.New("ERR_UNAUTHORIZED")
	ErrConvertFailed    = errors.New("ERR_CONVERT_FAILED")
	ErrAlreadyConverted = errors.New("ERR_ALREADY_CONVERTED")
	ErrUnhealthy        = errors.New("ERR_UNHEALTHY")
	ErrSameTag          = errors.New("ERR_SAME_TAG")
)

Functions

func NeedsRetryWithHTTP added in v0.1.1

func NeedsRetryWithHTTP(err error) bool

func NeedsRetryWithoutCache added in v0.2.9

func NeedsRetryWithoutCache(err error) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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