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

Function Root

errors/errors.go:31–36  ·  view source on GitHub ↗

Root returns the original error that was wrapped by one or more calls to Wrap. If e does not wrap other errors, it will be returned as-is.

(e error)

Source from the content-addressed store, hash-verified

29// calls to Wrap. If e does not wrap other errors, it will be returned
30// as-is.
31func Root(e error) error {
32 if wErr, ok := e.(wrapperError); ok {
33 return wErr.root
34 }
35 return e
36}
37
38// wrap adds a context message and stack trace to err and returns a new error
39// containing the new context. This function is meant to be composed within

Callers 14

TestApplyTxFunction · 0.92
TestBlockSigFunction · 0.92
TestBlockOnlyFunction · 0.92
TestBlockPrevFunction · 0.92
TestNoValidateFunction · 0.92
TestValidateFunction · 0.92
TestSimpleOpcodesFunction · 0.92
TestComplexOpcodesFunction · 0.92
TestSignBlockFunction · 0.92
TestTxBuilderFunction · 0.92
TestWrapFunction · 0.70
TestDetailFunction · 0.70

Calls

no outgoing calls

Tested by 13

TestApplyTxFunction · 0.74
TestBlockSigFunction · 0.74
TestBlockOnlyFunction · 0.74
TestBlockPrevFunction · 0.74
TestNoValidateFunction · 0.74
TestValidateFunction · 0.74
TestSimpleOpcodesFunction · 0.74
TestComplexOpcodesFunction · 0.74
TestSignBlockFunction · 0.74
TestTxBuilderFunction · 0.74
TestWrapFunction · 0.56
TestDetailFunction · 0.56