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

Function ExampleSub

errors/example_test.go:7–13  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

5var ErrInvalidKey = errors.New("invalid key")
6
7func ExampleSub() {
8 err := sign()
9 if err != nil {
10 err = errors.Sub(ErrInvalidKey, err)
11 return
12 }
13}
14
15func ExampleSub_return() {
16 err := sign()

Callers

nothing calls this directly

Calls 2

SubFunction · 0.92
signFunction · 0.70

Tested by

no test coverage detected