Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
48
void 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
Win32Exception
Class · 0.85
get_win32_error_msg
Function · 0.85
to_string
Function · 0.70
Tested by
no test coverage detected