title: try catch duo in c++
body: <p>I know that the general method for using the try catch duo is something like this:</p>
  
  <pre><code>try
  {
     //your code
  }
  catch(...)
  {
     //any error goes here
  }
  </code></pre>
  
  <p>Is there a way by which catch() catches the error code without giving any input... i.e if I didn't throw an exception but the c compiler did, then the error code can be anything. I just need to catch whatever the error code is and be notified that's all.</p>