IsErrPanicRecovery reports whether the given "err" is a type of ErrPanicRecovery.
(err error)
| 6387 | |
| 6388 | // IsErrPanicRecovery reports whether the given "err" is a type of ErrPanicRecovery. |
| 6389 | func IsErrPanicRecovery(err error) (*ErrPanicRecovery, bool) { |
| 6390 | if err == nil { |
| 6391 | return nil, false |
| 6392 | } |
| 6393 | v, ok := err.(*ErrPanicRecovery) |
| 6394 | return v, ok |
| 6395 | } |
| 6396 | |
| 6397 | // IsRecovered reports whether this handler has been recovered |
| 6398 | // by the Iris recover middleware. |
no outgoing calls
no test coverage detected
searching dependent graphs…