System.Exception: Exception of type 'System.Exception' was thrown
<p>I'm getting this error in this code</p>

<pre><code>  public static AbilityScore GetAbilityScore(AbilitiesSort abilitySort, int score)
    {
        var abilityScores = AbilitiesScore[abilitySort];

        foreach (var abilityScore in abilityScores)
            if (abilityScore.Min &lt;= score &amp;&amp; abilityScore.Max &gt;= score)
                return abilityScore;

       throw new System.Exception();   // error in this line
    }
</code></pre>

<p>i'm getting error in this line   <code>throw new System.Exception();</code> </p>