MCPcopy Create free account
hub / github.com/ByConity/ByConity / getCurrentExceptionCode

Function getCurrentExceptionCode

src/Common/Exception.cpp:465–487  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

463
464
465int 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
490void rethrowFirstException(const Exceptions & exceptions)

Callers 15

checkBinLogFileFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
mainMethod · 0.85
processMultiQueryMethod · 0.85
processWithFuzzingMethod · 0.85
mainMethod · 0.85

Calls 1

codeMethod · 0.45

Tested by

no test coverage detected