title: When does throwing an exception break a for loop?
body: <p>Will the for loop in <code>DoSomething</code> break if an exception is thrown before we complete the loop.</p>
  
  <pre><code>var test = new Test(...)
  
  try{
        //do something in test
        test.DoSomething()
    }
    catch(myException e)
    {
       \\do something about this exception
    }
  
  
  
  class Test
  {
     public void DoSomething(...)
     {
           for(var i=0;i &lt; 5; i++)
           {
                  ...
  
                  if(some smoke)
                    {
                        throw new myException {...}
                    }
  
                  ...
            }
  }
  </code></pre>