title: Exception Handling and Opening a File?
body: <p>Is it possible to use exceptions with file opening as an alternative to using <code>.is_open()</code>?</p>
  
  <p>For example:</p>
  
  <pre><code>ifstream input;
  
  try{
    input.open("somefile.txt");
  }catch(someException){
    //Catch exception here
  }
  </code></pre>
  
  <p>If so, what type is <code>someException</code>?</p>