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

Function fatalException

source/core/StarException_windows.cpp:256–267  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

254}
255
256void fatalException(std::exception const& e, bool showStackTrace) {
257 std::ostringstream ss;
258 ss << "v" << OpenStarVersionString << " (" << StarSourceIdentifierString << ")\n"
259 << "Fatal Exception: " << outputException(e, showStackTrace) << std::endl;
260 if (showStackTrace)
261 ss << "Caught at:" << std::endl << outputStack(captureStack());
262
263 Logger::log(LogLevel::Error, ss.str().c_str());
264 MessageBoxW(NULL, stringToUtf16(ss.str()).get(), stringToUtf16("Error").get(), MB_OK | MB_ICONERROR | MB_SYSTEMMODAL);
265
266 std::abort();
267}
268
269}

Callers

nothing calls this directly

Calls 7

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

Tested by

no test coverage detected