MCPcopy Create free account
hub / github.com/CPChain/chain / isErrorType

Function isErrorType

api/rpc/utils.go:68–73  ·  view source on GitHub ↗

Implements this type the error interface

(t reflect.Type)

Source from the content-addressed store, hash-verified

66
67// Implements this type the error interface
68func isErrorType(t reflect.Type) bool {
69 for t.Kind() == reflect.Ptr {
70 t = t.Elem()
71 }
72 return t.Implements(errorType)
73}
74
75var subscriptionType = reflect.TypeOf((*Subscription)(nil)).Elem()
76

Callers 2

isPubSubFunction · 0.85
suitableCallbacksFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected