MCPcopy Create free account
hub / github.com/Predelnik/DSpellCheck / throw_if_error

Function throw_if_error

src/common/Win32Exception.cpp:48–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46} // namespace
47
48void throw_if_error() {
49 auto err = GetLastError();
50 if (err != ERROR_SUCCESS)
51 throw Win32Exception(std::to_string(err) + " - " + get_win32_error_msg(err));
52}

Callers

nothing calls this directly

Calls 3

Win32ExceptionClass · 0.85
get_win32_error_msgFunction · 0.85
to_stringFunction · 0.70

Tested by

no test coverage detected