errors

package
v0.323.0 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func As added in v0.100.0

func As(err error, target interface{}) bool

func DeduplicateErrors added in v0.166.0

func DeduplicateErrors(merr []error) []error

DeduplicateErrors de-duplicates equivalent errors.

func Innermost

func Innermost(err error) bool

Innermost returns true if err cannot be further unwrapped.

func Is added in v0.100.0

func Is(err, target error) bool

func Join added in v0.100.0

func Join(errs ...error) error

func New added in v0.100.0

func New(text string) error

func Unwrap added in v0.100.0

func Unwrap(err error) error

func UnwrapAll

func UnwrapAll(err error) []error

UnwrapAll recursively unwraps all errors in err, including all intermediate errors.

Types

This section is empty.

Jump to

Keyboard shortcuts

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