MCPcopy Create free account
hub / github.com/Artikash/Textractor / GetCppExceptionMessage

Function GetCppExceptionMessage

GUI/exception.cpp:14–18  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12 }
13
14 const char* GetCppExceptionMessage(EXCEPTION_POINTERS* exception)
15 {
16 __try { return ((std::exception*)exception->ExceptionRecord->ExceptionInformation[1])->what(); }
17 __except (EXCEPTION_EXECUTE_HANDLER) { return "Could not find"; }
18 }
19
20 thread_local std::wstring lastError = L"Unknown error";
21

Callers 1

ExceptionLoggerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected