errors

package
v0.47.0 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2025 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Cause

func Cause(err error) error

Cause will determine the cause error of the given one, by returning the second wrapped error.

func New

func New(text string) error

New returns an error that formats as the given text. Each call to New returns a distinct error value even if the text is identical.

func UnwrapAll

func UnwrapAll(err error) []error

UnwrapAll will get all the wrapped errors of a given one, regardless if a single error was wrapped or multiple.

func Wrap

func Wrap(err, wrap error) error

Wrap an error with provided wrap error. Will check if the error is already of given type to prevent over-wrapping.

Types

This section is empty.

Jump to

Keyboard shortcuts

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