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

Method CreateErrorResponse

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

Assemble error response, expects response id and error

(id interface{}, err Error)

Source from the content-addressed store, hash-verified

104 CreateResponse(id interface{}, reply interface{}) interface{}
105 // Assemble error response, expects response id and error
106 CreateErrorResponse(id interface{}, err Error) interface{}
107 // Assemble error response with extra information about the error through info
108 CreateErrorResponseWithInfo(id interface{}, err Error, info interface{}) interface{}
109 // Create notification response

Callers 4

serveRequestMethod · 0.65
handleMethod · 0.65
execMethod · 0.65
execBatchMethod · 0.65

Implementers 1

jsonCodecapi/rpc/json.go

Calls

no outgoing calls

Tested by

no test coverage detected