title: VisualStudio | Notify if forgotten to declare an Exception in the summary
body: <p>I have the following <code>FooClass</code>. There are three methods where two of them can throw an <code>exception</code>.
  If have only declared in the <code>HasException</code> method that there can be an <code>exception</code> thrown.
  When you have large projects it can be possible that you forget to describe the <code>exceptions</code> in the summary.</p>
  
  <p><strong>It is possible to scan the solution if I have forgotten to declare an <code>exception</code>? In my example are four <code>exceptions</code> (declarations) missing.</strong></p>
  
  <pre><code>public class FooClass
  {
      public FooClass()
      {
          HasException();
  
          HasNoException();
  
          HasChildException();
      }
  
      /// &lt;summary&gt;
      /// This method does not throw an &lt;see cref="Exception"/&gt;.
      /// &lt;/summary&gt;
      public void HasNoException()
      {
  
      }
  
      /// &lt;summary&gt;
      /// This method is throwing an &lt;see cref="Exception"/&gt;.
      /// &lt;/summary&gt;
      /// &lt;exception cref="Exception"&gt;Is immediately thrown.&lt;/exception&gt;
      public void HasException()
      {
          throw new Exception();
      }
  
      /// &lt;summary&gt;
      /// This method can throwing an &lt;see cref="Exception"/&gt; from a method it calls.
      /// &lt;/summary&gt;
      public void HasChildException()
      {
          //throws an exception
          HasException();
  
          //throws also an exception
          int.Parse("foo");
      }
  }
  </code></pre>
  
  <p><strong>ToolTips</strong></p>
  
  <p><a href="https://i.stack.imgur.com/VVuqE.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/VVuqE.png" alt="hasexception"></a>
  <a href="https://i.stack.imgur.com/93WuP.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/93WuP.png" alt="parse"></a></p>
  
  <p><strong>This should be an example how the method should be described</strong></p>
  
  <pre><code>/// &lt;summary&gt;
  /// This method can throwing an &lt;see cref="Exception"/&gt; from a method it calls.
  /// &lt;/summary&gt;
  /// &lt;exception cref="Exception"&gt;&lt;/exception&gt;
  /// &lt;exception cref="ArgumentNullException"&gt;&lt;/exception&gt;
  /// &lt;exception cref="FormatException"&gt;&lt;/exception&gt;
  /// &lt;exception cref="OverflowException"&gt;&lt;/exception&gt;
  public void HasChildException()
  {
      //throws an exception
      HasException();
  
      //throws also an exception
      int.Parse("foo");
  }
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/t00rE.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/t00rE.png" alt="preview"></a></p>