MCPcopy Create free account
hub / github.com/chain/txvm / Wrapf

Function Wrapf

errors/errors.go:74–79  ·  view source on GitHub ↗

Wrapf is like Wrap, but arguments are handled as in fmt.Printf.

(err error, format string, a ...interface{})

Source from the content-addressed store, hash-verified

72
73// Wrapf is like Wrap, but arguments are handled as in fmt.Printf.
74func Wrapf(err error, format string, a ...interface{}) error {
75 if err == nil {
76 return nil
77 }
78 return wrap(err, fmt.Sprintf(format, a...), 1)
79}
80
81// WithDetail returns a new error that wraps
82// err as a chain error messsage containing text

Callers 15

ApplyBlockMethod · 0.92
ApplyTxMethod · 0.92
opCallFunction · 0.92
uninspectMethod · 0.92
opCheckSigFunction · 0.92
peekNthMethod · 0.92
rollMethod · 0.92
buryMethod · 0.92
opReverseFunction · 0.92
opPeekLogFunction · 0.92
opTupleFunction · 0.92
opFieldFunction · 0.92

Calls 1

wrapFunction · 0.85

Tested by 1

TestWrapfFunction · 0.68