| 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, |
no test coverage detected