* 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...") }, }.
| 40 | }.Do() |
| 41 | */ |
| 42 | type Block struct { |
| 43 | Try func() |
| 44 | Catch func(Exception) |
| 45 | Finally func() |
| 46 | } |
| 47 | |
| 48 | type Exception interface{} |
| 49 |
nothing calls this directly
no outgoing calls
no test coverage detected