MCPcopy Create free account
hub / github.com/apache/thrift / testException

Method testException

test/cpp/src/TestServer.cpp:327–342  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

325 }
326
327 void testException(const std::string& arg) override {
328 printf("testException(%s)\n", arg.c_str());
329 if (arg.compare("Xception") == 0) {
330 Xception e;
331 e.errorCode = 1001;
332 e.message = arg;
333 throw e;
334 } else if (arg.compare("TException") == 0) {
335 apache::thrift::TException e;
336 throw e;
337 } else {
338 Xtruct result;
339 result.string_thing = arg;
340 return;
341 }
342 }
343
344 void testMultiException(Xtruct& result,
345 const std::string& arg0,

Callers 2

testExceptionMethod · 0.45
mainFunction · 0.45

Calls 1

compareMethod · 0.45

Tested by

no test coverage detected