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

Function isError

context/context_func.go:186–188  ·  view source on GitHub ↗

isError returns true if "typ" is type of `error`.

(typ reflect.Type)

Source from the content-addressed store, hash-verified

184
185// isError returns true if "typ" is type of `error`.
186func isError(typ reflect.Type) bool {
187 return typ.Implements(errTyp)
188}
189
190func getError(outputs []reflect.Value) error {
191 if n := len(outputs); n > 0 {

Callers 2

buildMetaMethod · 0.70
getErrorFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…