MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / fatalError

Function fatalError

source/core/StarException_windows.cpp:243–254  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

241}
242
243void fatalError(char const* message, bool showStackTrace) {
244 std::ostringstream ss;
245 ss << "v" << OpenStarVersionString << " (" << StarSourceIdentifierString << ")\n"
246 << "Fatal Error: " << message << std::endl;
247 if (showStackTrace)
248 ss << outputStack(captureStack());
249
250 Logger::log(LogLevel::Error, ss.str().c_str());
251 MessageBoxW(NULL, stringToUtf16(ss.str()).get(), stringToUtf16("Error").get(), MB_OK | MB_ICONERROR | MB_SYSTEMMODAL);
252
253 std::abort();
254}
255
256void fatalException(std::exception const& e, bool showStackTrace) {
257 std::ostringstream ss;

Callers 1

WindowsSymInitializerMethod · 0.70

Calls 6

stringToUtf16Function · 0.85
outputStackFunction · 0.70
captureStackFunction · 0.70
c_strMethod · 0.45
strMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected