Nit: Let's use "argument" instead of "parameter" here to match the exceptions thrown by other methods that do argument checking.