Documentation
¶
Overview ¶
Package errors provides a small, standard-library-compatible error wrapping package used internally by dque.
The New, Wrap and Wrapf functions each capture a stack trace at the call site. The stack trace is rendered only with the %%+v format verb (via fmt.Formatter); Error() returns only the message (or message chain), matching the behavior of github.com/pkg/errors. Prefer errors.Is and errors.As for inspection over string comparison.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Join ¶
Join returns an error that wraps the given errors. Any nil error values are discarded. Join returns nil if every value in errs is nil. The error formats as the concatenation of the strings obtained by calling the Error method of each element, with a newline between them.
func New ¶
New returns a new error with the given message. It captures a stack trace that is rendered with %%+v (via fmt.Formatter), matching the behavior of github.com/pkg/errors.
Types ¶
This section is empty.