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

Method Error

transport/http/jsonrpc/error.go:13–18  ·  view source on GitHub ↗

Error implements error.

()

Source from the content-addressed store, hash-verified

11
12// Error implements error.
13func (e Error) Error() string {
14 if e.Message != "" {
15 return e.Message
16 }
17 return errorMessage[e.Code]
18}
19
20// ErrorCode returns the JSON RPC error code associated with the error.
21func (e Error) ErrorCode() int {

Callers 15

TestErrorFunction · 0.95
DefaultErrorEncoderFunction · 0.45
TestEncodeJSONRequestFunction · 0.45
ServeHTTPMethod · 0.45
DefaultErrorEncoderFunction · 0.45
TestMultipleServerBeforeFunction · 0.45
TestMultipleServerAfterFunction · 0.45
testServerFunction · 0.45

Calls

no outgoing calls

Tested by 15

TestErrorFunction · 0.76
TestEncodeJSONRequestFunction · 0.36
TestMultipleServerBeforeFunction · 0.36
TestMultipleServerAfterFunction · 0.36
testServerFunction · 0.36
TestErrorsSatisfyErrorFunction · 0.36
TestSubscriberSuccessFunction · 0.36