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

Interface Error

api/rpc/types.go:90–93  ·  view source on GitHub ↗

Error wraps RPC errors, which contain an error code in addition to the message.

Source from the content-addressed store, hash-verified

88
89// Error wraps RPC errors, which contain an error code in addition to the message.
90type Error interface {
91 Error() string // returns the message
92 ErrorCode() int // returns the code
93}
94
95// ServerCodec implements reading, parsing and writing RPC messages for the server side of
96// a RPC session. Implementations must be go-routine safe since the codec can be called in

Callers 10

TestHomeFunction · 0.65
mainFunction · 0.65
ConnectFunction · 0.65
GetAddressAndKeyFunction · 0.65
PrepareCpclientFunction · 0.65
mainFunction · 0.65
DeployCampaignFunction · 0.65
UpdateCampaignParametersFunction · 0.65
CreateErrorResponseMethod · 0.65

Implementers 7

methodNotFoundErrorapi/rpc/errors.go
invalidRequestErrorapi/rpc/errors.go
invalidMessageErrorapi/rpc/errors.go
invalidParamsErrorapi/rpc/errors.go
callbackErrorapi/rpc/errors.go
shutdownErrorapi/rpc/errors.go
jsonErrorapi/rpc/json.go

Calls

no outgoing calls

Tested by

no test coverage detected