MCPcopy Create free account
hub / github.com/bracesdev/errtrace / Wrap

Method Wrap

wrap_caller.go:31–33  ·  view source on GitHub ↗

Wrap adds the program counter captured in Caller to the error, similar to [Wrap], but relying on previously captured caller inforamtion.

(err error)

Source from the content-addressed store, hash-verified

29// Wrap adds the program counter captured in Caller to the error,
30// similar to [Wrap], but relying on previously captured caller inforamtion.
31func (c Caller) Wrap(err error) error {
32 return wrap(err, c.callerPC)
33}

Callers 7

wrapFunction · 0.80
errorsNewFunction · 0.80
wrapExistingFunction · 0.80
passCallerInnerFunction · 0.80
callRetCallerFunction · 0.80
callRetCallerNoInlineFunction · 0.80
AlreadyWrappedFunction · 0.80

Calls 1

wrapFunction · 0.70

Tested by 6

wrapFunction · 0.64
errorsNewFunction · 0.64
wrapExistingFunction · 0.64
passCallerInnerFunction · 0.64
callRetCallerFunction · 0.64
callRetCallerNoInlineFunction · 0.64