navigation

RaiseWithSingleArgument (FL0017)

Cause

raise is passed more than one argument e.g. raise (System.ArgumentException("Divisor cannot be zero.")) 5

Rationale

raise being passed more than one argument (the exception to be thrown) is probably a mistake.

How To Fix

Remove the extra arguments.

Rule Settings

{
    "raiseWithSingleArgument": {
        "enabled": true
    }
}