title: How to catch ALL exceptions/crashes in a .NET app
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/219594/net-whats-the-best-way-to-implement-a-catch-all-exceptions-handler">.NET - What’s the best way to implement a “catch all exceptions handler”</a>  </p>
  </blockquote>
  
  
  
  <p>I have a .NET console app app that is crashing and displaying a message to the user. 
  All of my code is in a <code>try{&lt;code&gt;} catch(Exception e){&lt;stuff&gt;}</code> block, but still errors are occasionally displayed.</p>
  
  <p>In a Win32 app, you can capture all possible exceptions/crashes by installing various exception handlers:</p>
  
  <pre><code>/* C++ exc handlers */
  _set_se_translator
  SetUnhandledExceptionFilter
  _set_purecall_handler
  set_terminate
  set_unexpected
  _set_invalid_parameter_handler
  </code></pre>
  
  <p>What is the equivalent in the .NET world so I can handle/log/quiet all possible error cases?</p>