title: Main method code entirely inside try/catch: Is it bad practice?
body: <p>Usually I put all of my Main method code inside of a try/catch block like so:</p>
  
  <pre><code>public static void Main(string[] args)
  {
     try
     {
        // code
     }
     catch (Exception e)
     {
        // code
     }
  }
  </code></pre>
  
  <p>I do this just in case any exceptions manage to slip out of the rest of the program logic, thus allowing me to do something about it, such as display it to console, log it to a file, etc. However, I have been told that this is bad practice.</p>
  
  <p>Do you think it is bad practice?</p>