MCPcopy Create free account
hub / github.com/modelcontextprotocol/go-sdk / Is

Method Is

internal/jsonrpc2/wire.go:88–94  ·  view source on GitHub ↗
(other error)

Source from the content-addressed store, hash-verified

86}
87
88func (err *WireError) Is(other error) bool {
89 w, ok := other.(*WireError)
90 if !ok {
91 return false
92 }
93 return err.Code == w.Code
94}

Callers 15

verifyFunction · 0.80
waitMethod · 0.80
acceptRequestMethod · 0.80
writeMethod · 0.80
scanEventsFunction · 0.80
TestServerClosingFunction · 0.80
TestKeepAliveFailureFunction · 0.80
callFunction · 0.80
WriteMethod · 0.80

Calls

no outgoing calls

Tested by 6

TestServerClosingFunction · 0.64
TestKeepAliveFailureFunction · 0.64
runServerTestFunction · 0.64