MCPcopy
hub / github.com/go-kit/kit / ErrorCode

Method ErrorCode

transport/http/jsonrpc/server.go:218–218  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

216// By default, InternalError (-32603) is used.
217type ErrorCoder interface {
218 ErrorCode() int
219}
220
221// interceptingWriter intercepts calls to WriteHeader, so that a finalizer

Callers 2

DefaultErrorEncoderFunction · 0.65
TestErrorsSatisfyErrorFunction · 0.65

Implementers 1

Errortransport/http/jsonrpc/error.go

Calls

no outgoing calls

Tested by 1

TestErrorsSatisfyErrorFunction · 0.52