errors

package
v0.2.7 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	New    = goerrors.New
	Unwrap = goerrors.Unwrap
	Is     = goerrors.Is
	As     = goerrors.As
)

Functions

func GetDeepestLabel

func GetDeepestLabel(err error, key string) (any, bool)

func GetLabels

func GetLabels(err error, key string) []any

GetLabels returns labels from the nearest to the deepest.

func GetNearestLabel

func GetNearestLabel(err error, key string) (any, bool)

func Label

func Label(err error, key string, value any) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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