MCPcopy Create free account
hub / github.com/chain/Core / 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 1

TestWriterFunction · 0.70

Calls

no outgoing calls

Tested by 1

TestWriterFunction · 0.56