title: Programmatically suppressing exceptions in C#
body: <p>I have the following <code>try-catch</code> statement and I do not want to not throw the exception if the message property contains 'My error' in the text.</p>
  
  <p>How can I programmatcially accomplish this?  Also, would this be considered code-smell?</p>
  
  <pre><code>try
  {
  }
  catch(Exception e)
  {
      if(e.Messages.Contains("My error"))
      {
         //want to display a friendly message and suppress the exception
      }
      else
      {
          throw e;
      }
  }
  </code></pre>