Closed
Description
Motivation
- multi error is needed, currently, we just use lastErr ...
- we want to have handy methods to traverse the error chain
- categorize error source and types, i.e. standard library, third party, developer's fault (i.e. copy and pasted legacy code), runtime failure (network etc.)
- better integration with logging package, i.e. print stack when log an error
- not much updates on pkg/errors https://github.com/pkg/errors/commits/master
Ref
Wrap
- https://github.com/hashicorp/errwrap
- https://github.com/pkg/errors
- https://github.com/juju/errors
- https://github.com/go-errgo/errgo/tree/v1 used by juju?
- https://github.com/go-errors/errors used it when first start Ayi, then switched to pkg/errors
Multi error
k8s