title: Wrap every method in try-catch or specific part of code
body: <p>My senior colleague tells me to wrap every method within a try-catch block so they can trace where exceptions occurs to help debug issues quicker. Is it better to wrap every method in a Try Catch such as this to:</p>
  
  <pre><code>Public int foo()
  {
     try
     {
         //do something
     }catch(Exeception ex)
     {
         //do something with ex
     }
  }
  </code></pre>
  
  <p>Or is it better to catch exceptions where I think they may occur? E.g. doing something with an array may cause the <code>IndexOutOfRangeException</code> will occur.</p>
  
  <pre><code>//wrap this in try catch
      int[] array = new int[3];
  
                  array[0] = 1;
                  array[1] = 2;
                  array[2] = 3;
                  array[3] = 4;
  </code></pre>
  
  <p>Thanks.</p>