title: Exception Handling in C# using try catch
body: <p>I have 3 Methods, I am try catch for every method. If an error occur in Third method it goes to exception.</p>
  
  <pre><code>private void M1()
  {  
     try
     {
       //some code
       //calling M2()
       //some code
     }
     catch(Exception ex)
     {
        MessageBox.Show(ex.Message);
     }
  }
  private void M2()
  {  
     try
     {
       //some code
       //calling M3()
       //some code
     }
     catch(Exception ex)
     {
        throw ex;
     }
  }
  private void M3()
  {  
     try
     {
       //some code
       //Error Occur
       //some code
     }
     catch(Exception ex)
     {
        throw ex;
     }
  }
  </code></pre>
  
  <p>Now it goes directly to M1() method and shows Exception. And the another method is</p>
  
  <pre><code>private void M1()
  {  
     try
     {
       //some code
       //calling M2()
       //some code
     }
     catch(Exception ex)
     {
        MessageBox.Show(ex.Message);
     }
  }
  private void M2()
  {  
     try
     {
       //some code
       //calling M3()
       //some code
     }
     catch(Exception ex)
     {
        MessageBox.Show(ex.Message);
        return;
     }
  }
  private void M3()
  {  
     try
     {
       //some code
       //Error Occur
       //some code
     }
     catch(Exception ex)
     {
        MessageBox.Show(ex.Message);
        return;
     }
  }
  </code></pre>
  
  <p>After exception also it execute the code in M2() and in M1().</p>
  
  <p>Which Program is best...,</p>