title: terminating with uncaught exception of type
body: <p>I'm trying the write exception an handling in case a txt file could not be found and open. I'm receiving "terminating with uncaught exception of type char const*" from the compiler. I don't understand why I cannot see the catch message "File could not be opened"</p>
  
  <pre><code>try{
  
   ins.open(argv[1]);
   if ( !ins )
         throw "not";
  
  } catch (char&amp; e){
     cout &lt;&lt; "File could not be opened";
     exit( 1 );
  }
  </code></pre>