== Noncompliant Code Example

----
void DoSomething(int someParameter, string anotherParam)
{
    if (someParameter < 0) 
    {
        throw new ArgumentException("Bad argument", "someParameter");  // Noncompliant
    }
    if (anotherParam == null)
    {
        throw new Exception("anotherParam should not be null"); // Noncompliant
    }
}
----
