Click or drag to resize

CodedArgumentOutOfRangeException Constructor (String)

[This is preliminary documentation and is subject to change.]

Initializes a new instance of the CodedArgumentOutOfRangeException class with the name of the parameter that causes this exception.

Namespace:  NerdyDuck.CodedExceptions
Assembly:  NerdyDuck.CodedExceptions (in NerdyDuck.CodedExceptions.dll) Version: 2.0.0+2040dad
Syntax
public CodedArgumentOutOfRangeException(
	string paramName
)
View Source

Parameters

paramName
Type: SystemString
The name of the parameter that caused the exception.
Remarks

This constructor initializes the Message property of the new instance to a system-supplied message that describes the error, such as "Nonnegative number required." This message takes into account the current system culture.

This constructor initializes the ParamName property of the new instance using the paramName parameter. The content of paramName is intended to be understood by humans.

See Also