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

Method HasError

src/jsonrpccpp/client/rpcprotocolclient.cpp:116–122  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

114}
115
116bool RpcProtocolClient::HasError(const Json::Value &response) {
117 if (this->version == JSONRPC_CLIENT_V1 && !response[KEY_ERROR].isNull())
118 return true;
119 else if (this->version == JSONRPC_CLIENT_V2 && response.isMember(KEY_ERROR))
120 return true;
121 return false;
122}

Callers 1

HandleResponseMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected