errors

package
v0.6.39 Latest Latest
Warning

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

Go to latest
Published: May 14, 2026 License: AGPL-3.0, Apache-2.0, MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrExpected = errors.New("this is a transient, expected error")
View Source
var ErrTransientManifest = fmt.Errorf("this is a temporary api error, %w", ErrExpected)
View Source
var ErrUnauthenticated = fmt.Errorf("cannot access the plural api, %w", ErrExpected)
View Source
var ErrWarning = errors.New("warning")

Functions

func IsWarning

func IsWarning(err error) bool

func NewDigestMismatchError

func NewDigestMismatchError(expected, actual string) error

Types

type DigestMismatchError

type DigestMismatchError struct {
	Expected string
	Actual   string
}

func (*DigestMismatchError) Error

func (e *DigestMismatchError) Error() string

func (*DigestMismatchError) Is

func (e *DigestMismatchError) Is(target error) bool

Jump to

Keyboard shortcuts

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