Repanic panics if any calls to Try caught a panic. It will panic with the value of the first panic caught, wrapped in a panics.Recovered with caller information.
()
| 34 | // value of the first panic caught, wrapped in a panics.Recovered with caller |
| 35 | // information. |
| 36 | func (p *Catcher) Repanic() { |
| 37 | if val := p.Recovered(); val != nil { |
| 38 | panic(val) |
| 39 | } |
| 40 | } |
| 41 | |
| 42 | // Recovered returns the value of the first panic caught by Try, or nil if |
| 43 | // no calls to Try panicked. |
no test coverage detected