errors

package
v0.19.4 Latest Latest
Warning

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

Go to latest
Published: May 8, 2024 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Unwrap

func Unwrap(err error) []error

Unwrap unwraps an error created by errors.Join() in Go 1.20, into its components

func UnwrapAll

func UnwrapAll(err error) (errs []error)

UnwrapAll unwraps an error created by errors.Join() in Go 1.20, into its components, recursively

func UnwrapFirst

func UnwrapFirst(err error) error

UnwrapFirst unwraps an error created by errors.Join() in Go 1.20, into its components, recursively, and returns one (the first) unwrapped error

Types

type Wrapped

type Wrapped interface {
	Unwrap() []error
}

Wrapped is used to unwrap an error created by errors.Join() in Go 1.20

Jump to

Keyboard shortcuts

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