errors

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2021 License: MIT Imports: 4 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 Details

func Details(err error) string

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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