errors

package
v0.10.7 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	New = errors.New
	Is  = errors.Is
	As  = errors.As
)

Aliases to the standard errors package.

Functions

func Combine added in v0.10.5

func Combine(errs ...error) error

func Details

func Details(err error) string

func Errors added in v0.10.5

func Errors(err error) []error

func WithCause

func WithCause(symptom, cause error) error

WithCause annotates a symptom error with a cause.

Both errors can be discovered by the Is and As methods.

func WithDetails

func WithDetails(err error, details ...string) error

func WriteDetails added in v0.10.5

func WriteDetails(w io.Writer, err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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