21 std::string_view thread_name) {
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, thread_name);
39 std::string_view thread_name) {
41 LogPrintf(
"\n\n************************\n%s\n", message);
42 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)