errors

package
v0.0.0-...-ad46a6f Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2022 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

func Combine(errs ...error) error

func Details

func Details(err error) string

func Errors

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

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