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

Function Data

errors/errors.go:162–165  ·  view source on GitHub ↗

Data returns the data item in err, if any.

(err error)

Source from the content-addressed store, hash-verified

160
161// Data returns the data item in err, if any.
162func Data(err error) map[string]interface{} {
163 wrapper, _ := err.(wrapperError)
164 return wrapper.data
165}
166
167// Sub returns an error containing root as its root and
168// taking all other metadata (stack trace, detail, message,

Callers 3

FatalErrFunction · 0.92
TestDataFunction · 0.70
WithDataFunction · 0.70

Calls

no outgoing calls

Tested by 1

TestDataFunction · 0.56