20static std::string
FormatException(
const std::exception* pex, std::string_view thread_name)
24 GetModuleFileNameA(
nullptr, pszModule,
sizeof(pszModule));
26 const char* pszModule =
"bitcoin";
30 "EXCEPTION: %s \n%s \n%s in %s \n",
typeid(*pex).name(), pex->what(), pszModule, thread_name);
33 "UNKNOWN EXCEPTION \n%s in %s \n", pszModule, thread_name);
39 LogPrintf(
"\n\n************************\n%s\n", message);
40 tfm::format(std::cerr,
"\n\n************************\n%s\n", message);
static std::string FormatException(const std::exception *pex, std::string_view thread_name)
void PrintExceptionContinue(const std::exception *pex, std::string_view thread_name)