| 463 | |
| 464 | |
| 465 | int getCurrentExceptionCode() |
| 466 | { |
| 467 | try |
| 468 | { |
| 469 | throw; |
| 470 | } |
| 471 | catch (const Exception & e) |
| 472 | { |
| 473 | return e.code(); |
| 474 | } |
| 475 | catch (const Poco::Exception &) |
| 476 | { |
| 477 | return ErrorCodes::POCO_EXCEPTION; |
| 478 | } |
| 479 | catch (const std::exception &) |
| 480 | { |
| 481 | return ErrorCodes::STD_EXCEPTION; |
| 482 | } |
| 483 | catch (...) |
| 484 | { |
| 485 | return ErrorCodes::UNKNOWN_EXCEPTION; |
| 486 | } |
| 487 | } |
| 488 | |
| 489 | |
| 490 | void rethrowFirstException(const Exceptions & exceptions) |
no test coverage detected