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

Function outputException

source/core/StarException_windows.cpp:231–237  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

229}
230
231OutputProxy outputException(std::exception const& e, bool fullStacktrace) {
232 if (auto starException = as<StarException>(&e))
233 return OutputProxy(bind(starException->m_printException, _1, fullStacktrace));
234 else
235 return OutputProxy(
236 bind([](std::ostream& os, std::string what) { os << "std::exception: " << what; }, _1, std::string(e.what())));
237}
238
239void printStack(char const* message) {
240 Logger::info("Stack Trace ({})...\n{}", message, outputStack(captureStack()));

Callers 1

fatalExceptionFunction · 0.70

Calls 3

stringFunction · 0.85
OutputProxyClass · 0.70
whatMethod · 0.45

Tested by

no test coverage detected