MCPcopy Index your code
hub / github.com/go-errors/errors / ExampleWrapError_skip

Function ExampleWrapError_skip

error_test.go:225–232  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

223}
224
225func ExampleWrapError_skip() {
226 defer func() {
227 if err := recover(); err != nil {
228 // skip 1 frame (the deferred function) and then return the wrapped err
229 err = Wrap(err, 1)
230 }
231 }()
232}
233
234func ExampleIs(reader io.Reader, buff []byte) {
235 _, err := reader.Read(buff)

Callers

nothing calls this directly

Calls 1

WrapFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…