MCPcopy Index your code
hub / github.com/bracesdev/errtrace / errorsNew

Function errorsNew

wrap_caller_test.go:27–30  ·  view source on GitHub ↗
(msg string)

Source from the content-addressed store, hash-verified

25}
26
27func errorsNew(msg string) error {
28 caller := errtrace.GetCaller()
29 return caller.Wrap(errors.New(msg))
30}
31
32func TestGetCallerWrap_WrapExisting(t *testing.T) {
33 err := callWrapExisting()

Callers 1

callErrorsNewFunction · 0.85

Calls 2

GetCallerFunction · 0.92
WrapMethod · 0.80

Tested by

no test coverage detected