]> git.tdb.fi Git - libs/core.git/blob - source/core/unix/application.cpp
Update .gitignore
[libs/core.git] / source / core / unix / application.cpp
1 #include <typeinfo>
2 #include <msp/debug/demangle.h>
3 #include <msp/io/print.h>
4 #include "application.h"
5
6 using namespace std;
7
8 namespace Msp {
9
10 void Application::display_exception(const exception &e)
11 {
12         IO::print(IO::cerr, "An uncaught exception occurred.\n");
13         IO::print(IO::cerr, "  type:   %s\n", Debug::demangle(typeid(e).name()));
14         IO::print(IO::cerr, "  what(): %s\n", e.what());
15 }
16
17 } // namespace Msp