21 const char *pszThread) {
24 GetModuleFileNameA(
nullptr, pszModule,
sizeof(pszModule));
26 const char *pszModule =
"bitcoin";
29 return strprintf(
"EXCEPTION: %s \n%s \n%s in %s \n",
30 typeid(*pex).name(), pex->what(), pszModule,
33 return strprintf(
"UNKNOWN EXCEPTION \n%s in %s \n",
34 pszModule, pszThread);
40 LogPrintf(
"\n\n************************\n%s\n", message);
41 tfm::format(std::cerr,
"\n\n************************\n%s\n", message);
static std::string FormatException(const std::exception *pex, const char *pszThread)
void PrintExceptionContinue(const std::exception *pex, const char *pszThread)