I am trying to get different exceptions (ArgumentOutOfRangeException) depending on different parameters in a method. The CheckParametersAndThrowException3 method checks if unit I and doubled are in the range. The problem for me I only get the exception for int I but not for the 2nd parameter d.Please let me know How can I get exceptions for both the parameters.

```
  public static bool CheckParametersAndThrowException3(uint i, double d)
    {

        if ((i >= 0 && i < 5) && (d < 1.0 && d >= -1.0))
        {
            return true;
        }
        else
        {
            throw new ArgumentOutOfRangeException(nameof(i), "i should be in [0, 5) interval.");
            throw new ArgumentOutOfRangeException(nameof(d), "d should be in [-1.0, 1.0] interval.");
        }
    }

```