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

Method WrapException

src/jsonrpccpp/server/rpcprotocolserverv1.cpp:64–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

62}
63
64void RpcProtocolServerV1::WrapException(const Json::Value &request, const JsonRpcException &exception, Json::Value &result) {
65 this->WrapError(request, exception.GetCode(), exception.GetMessage(), result);
66 result["error"]["data"] = exception.GetData();
67}
68
69procedure_t RpcProtocolServerV1::GetRequestType(const Json::Value &request) {
70 if (request[KEY_REQUEST_ID] == Json::nullValue)

Callers 1

HandleJsonRequestMethod · 0.95

Calls 2

WrapErrorMethod · 0.95
GetCodeMethod · 0.80

Tested by

no test coverage detected