Skip to content

Review parameters for ArgumentOutOfRangeException #665

@NightOwl888

Description

@NightOwl888

The constructor of ArgumentOutOfRangeException that accepts a single string parameter expects a parameter name, not a message. I have spotted at least 2 cases where we are incorrectly passing a message to this parameter. We need to change these to call the constructor that accepts 2 strings and pass the name of the argument as the first parameter (using nameof(<argument>), or in the case of a property, nameof(<PropertyName>)).

Metadata

Metadata

Assignees

Labels

good-first-issueGood for newcomershacktoberfest-acceptedPR is approved for Hacktoberfest even if not mergedis:bugup-for-grabsThis issue is open to be worked on by anyone

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions