Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // WrapperFuncList contains "path/to/pkg.Funcname" strings that adds a context to errors. WrapperFuncList = []string{ "errors.New", "fmt.Errorf", "github.com/pkg/errors.Errorf", "github.com/pkg/errors.New", "github.com/pkg/errors.WithMessage", "github.com/pkg/errors.WithStack", "github.com/pkg/errors.Wrap", "github.com/pkg/errors.Wrapf", "github.com/srvc/fail.Errorf", "github.com/srvc/fail.New", "github.com/srvc/fail.Wrap", } )
Functions ¶
This section is empty.
Types ¶
type Detector ¶
func NewDetector ¶
func NewDetector() Detector
type UnwrappedError ¶
type UnwrappedErrors ¶
type UnwrappedErrors interface { error Errors() []*UnwrappedError Add(*UnwrappedError) }
func UnwrapUnwrappedErrorsError ¶
func UnwrapUnwrappedErrorsError(err error) (uerr UnwrappedErrors, ok bool)
Click to show internal directories.
Click to hide internal directories.