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

Function ExampleWrap

error_test.go:246–253  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

244}
245
246func ExampleWrap() error {
247
248 if err := recover(); err != nil {
249 return Wrap(err, 1)
250 }
251
252 return a()
253}
254
255func ExampleError_Error(err error) {
256 fmt.Println(err.Error())

Callers

nothing calls this directly

Calls 2

WrapFunction · 0.85
aFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…