MCPcopy Index your code
hub / github.com/cockroachdb/errors / tryDelegateToIsMethod

Function tryDelegateToIsMethod

markers/markers.go:107–112  ·  view source on GitHub ↗
(err, reference error)

Source from the content-addressed store, hash-verified

105}
106
107func tryDelegateToIsMethod(err, reference error) bool {
108 if x, ok := err.(interface{ Is(error) bool }); ok && x.Is(reference) {
109 return true
110 }
111 return false
112}
113
114// HasType returns true iff err contains an error whose concrete type
115// matches that of referenceType.

Callers 1

IsFunction · 0.85

Calls 1

IsMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…