MCPcopy Create free account
hub / github.com/BTCGPU/BTCGPU / FormatException

Function FormatException

src/util.cpp:682–696  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

680}
681
682static std::string FormatException(const std::exception* pex, const char* pszThread)
683{
684#ifdef WIN32
685 char pszModule[MAX_PATH] = "";
686 GetModuleFileNameA(nullptr, pszModule, sizeof(pszModule));
687#else
688 const char* pszModule = "bitcoin";
689#endif
690 if (pex)
691 return strprintf(
692 "EXCEPTION: %s \n%s \n%s in %s \n", typeid(*pex).name(), pex->what(), pszModule, pszThread);
693 else
694 return strprintf(
695 "UNKNOWN EXCEPTION \n%s in %s \n", pszModule, pszThread);
696}
697
698void PrintExceptionContinue(const std::exception* pex, const char* pszThread)
699{

Callers 1

PrintExceptionContinueFunction · 0.85

Calls 1

whatMethod · 0.80

Tested by

no test coverage detected