MCPcopy Create free account
hub / github.com/OpenAtomFoundation/SmartIDE / Block

Struct Block

cli/pkg/common/try.go:42–46  ·  view source on GitHub ↗

* example: Block{ Try: func() { fmt.Println("I tried") Throw("Oh,...sh...") }, Catch: func(e Exception) { fmt.Printf("Caught %v\n", e) }, Finally: func() { fmt.Println("Finally...") }, }.

Source from the content-addressed store, hash-verified

40 }.Do()
41*/
42type Block struct {
43 Try func()
44 Catch func(Exception)
45 Finally func()
46}
47
48type Exception interface{}
49

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected