MCPcopy Create free account
hub / github.com/cinemast/libjson-rpc-cpp / getErrorMessage

Method getErrorMessage

src/jsonrpccpp/client/batchresponse.cpp:46–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44}
45
46string BatchResponse::getErrorMessage(Json::Value &id) {
47 if (std::find(errorResponses.begin(), errorResponses.end(), id) != errorResponses.end()) {
48 return responses[id]["message"].asString();
49 }
50 return "";
51}
52
53string BatchResponse::getErrorMessage(int id) {
54 Json::Value i = id;

Callers 1

test_client.cppFile · 0.80

Calls 2

beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected