MCPcopy Create free account
hub / github.com/LUX-Core/lux / FormatException

Function FormatException

src/util.cpp:489–503  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

487}
488
489static std::string FormatException(std::exception* pex, const char* pszThread)
490{
491#ifdef WIN32
492 char pszModule[MAX_PATH] = "";
493 GetModuleFileNameA(NULL, pszModule, sizeof(pszModule));
494#else
495 const char* pszModule = "lux";
496#endif
497 if (pex)
498 return strprintf(
499 "EXCEPTION: %s \n%s \n%s in %s \n", typeid(*pex).name(), pex->what(), pszModule, pszThread);
500 else
501 return strprintf(
502 "UNKNOWN EXCEPTION \n%s in %s \n", pszModule, pszThread);
503}
504
505void PrintExceptionContinue(std::exception* pex, const char* pszThread)
506{

Callers 1

PrintExceptionContinueFunction · 0.85

Calls 2

nameMethod · 0.45
whatMethod · 0.45

Tested by

no test coverage detected