A replacement for errors
and pkg/errors
. Supports error wrapping, inspection and multi errors.
- doc/design contains some survey and design choices we made
Wrap
checks if this is already aWrappedErr
, if not, it attaches stackMultiErr
keep a slice of errors, the thread safe version use mutex and returns copy of slice whenErrors
is called
- golang/xerrors Official error wrapping
fmt.Errorf("oh my %w", err)
- rotisserie/eris
- go-rewrap-errors Conver pkg/errors to standard library wrapping