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

Method ErrorCode

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

returns the message

()

Source from the content-addressed store, hash-verified

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

Callers 2

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