MCPcopy Create free account
hub / github.com/ElementsProject/elements / FormatException

Function FormatException

src/util/system.cpp:763–777  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

761}
762
763static std::string FormatException(const std::exception* pex, const char* pszThread)
764{
765#ifdef WIN32
766 char pszModule[MAX_PATH] = "";
767 GetModuleFileNameA(nullptr, pszModule, sizeof(pszModule));
768#else
769 const char* pszModule = "bitcoin";
770#endif
771 if (pex)
772 return strprintf(
773 "EXCEPTION: %s \n%s \n%s in %s \n", typeid(*pex).name(), pex->what(), pszModule, pszThread);
774 else
775 return strprintf(
776 "UNKNOWN EXCEPTION \n%s in %s \n", pszModule, pszThread);
777}
778
779void PrintExceptionContinue(const std::exception* pex, const char* pszThread)
780{

Callers 1

PrintExceptionContinueFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected