| 229 | } |
| 230 | |
| 231 | OutputProxy 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 | |
| 239 | void printStack(char const* message) { |
| 240 | Logger::info("Stack Trace ({})...\n{}", message, outputStack(captureStack())); |
no test coverage detected