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

Function New

errors/errors.go:10–12  ·  view source on GitHub ↗

New returns an error that formats as the given text.

(text string)

Source from the content-addressed store, hash-verified

8
9// New returns an error that formats as the given text.
10func New(text string) error {
11 return errors.New(text)
12}
13
14// wrapperError satisfies the error interface.
15type wrapperError struct {

Callers 15

builder.goFile · 0.92
block.goFile · 0.92
snapshot.goFile · 0.92
validation.goFile · 0.92
AssembleFunction · 0.92
TestSignBlockFunction · 0.92
block.goFile · 0.92
SignBlockFunction · 0.92
ScanMethod · 0.92
ScanMethod · 0.92
template.goFile · 0.92
valueToTopFunction · 0.92

Calls

no outgoing calls

Tested by 6

TestSignBlockFunction · 0.74
TestPrintkvStackFunction · 0.74
TestErrorFunction · 0.74
TestHelperStackFunction · 0.74
TestFormatValueFunction · 0.74
TestWriterFunction · 0.56