title: Where to catch exceptions when inside a loop?
body: <p>HI,
  I was wondering what your thoughts are on exception handling, i.e I have a method:</p>
  
  <pre><code>public void Method{}
  {
     for (int i=0;i &lt; length )
     {
      // dosomething that may case exception
      ...
      ...
      // rest of the code
     }
  }
  </code></pre>
  
  <p>Should I add the try catch block for exception handling for the whole loop or just the code that is most vunerable or something else?
  What's the best practice?</p>