can I get description of an exception caught by
catch(...)
block? something like .what() of std::exception.
Quoting bobah
#include #include #include #include int main() { try { throw ...; // throw something } catch(...) { std::exception_ptr p = std::current_exception(); std::clog <<(p ? p.__cxa_exception_type()->name() : "null") << std::endl; } return 1; }