MCPcopy Create free account
hub / github.com/kataras/iris / IsErrPanicRecovery

Function IsErrPanicRecovery

context/context.go:6389–6395  ·  view source on GitHub ↗

IsErrPanicRecovery reports whether the given "err" is a type of ErrPanicRecovery.

(err error)

Source from the content-addressed store, hash-verified

6387
6388// IsErrPanicRecovery reports whether the given "err" is a type of ErrPanicRecovery.
6389func 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.

Callers 3

getErrorTextMethod · 0.92
IsMethod · 0.85
IsRecoveredMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…