Se ho capito cosa ti serve

codice:
catch (const char * str)
{
      std::cout << "Exception: " << str << std::endl;
}