fleet/server/contexts/ctxerr
Roberto Dip 894fa22c71
implement a thin wrapper around stdlib errors (#5733)
This solves #5679 , and also implements #5515, #5509 and lays the ground for #5516

With the introduction of Wrap, Is and As in the standard library, we've now got built-in support for wrapping.

On top of that, a common pattern in the community is to define errors tailored to the context of each project while still conforming to the error and Unwrap interfaces (see Upspin, Chromium)

The output now includes stack traces and additional info
2022-05-18 11:47:55 -03:00
..
ctxerr_test.go implement a thin wrapper around stdlib errors (#5733) 2022-05-18 11:47:55 -03:00
ctxerr.go implement a thin wrapper around stdlib errors (#5733) 2022-05-18 11:47:55 -03:00
stack_test.go implement a thin wrapper around stdlib errors (#5733) 2022-05-18 11:47:55 -03:00
stack.go implement a thin wrapper around stdlib errors (#5733) 2022-05-18 11:47:55 -03:00