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

Method WrapException

src/jsonrpccpp/server/rpcprotocolserverv2.cpp:87–90  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

85}
86
87void RpcProtocolServerV2::WrapException(const Json::Value &request, const JsonRpcException &exception, Json::Value &result) {
88 this->WrapError(request, exception.GetCode(), exception.GetMessage(), result);
89 result["error"]["data"] = exception.GetData();
90}
91
92procedure_t RpcProtocolServerV2::GetRequestType(const Json::Value &request) {
93 if (request.isMember(KEY_REQUEST_ID))

Callers 1

HandleSingleRequestMethod · 0.95

Calls 2

WrapErrorMethod · 0.95
GetCodeMethod · 0.80

Tested by

no test coverage detected