Open sandboxFocus

Method CreateArgumentOutOfRangeException

CreateArgumentOutOfRangeException(object, string, LocationKind)

Creates an ArgumentOutOfRangeException with an error message formatted from ErrorMessage and given concrete values.

Declaration
[Obsolete("Use ContractServices.ExceptionFactory.CreateException().")]
protected ArgumentOutOfRangeException CreateArgumentOutOfRangeException(object value, string locationName, LocationKind locationKind)
Parameters
Type Name Description
object value

The value assigned to the location.

string locationName

The name of the location.

LocationKind locationKind

The kind of the location.

Returns
Type Description
ArgumentOutOfRangeException

A new ArgumentOutOfRangeException whose message is derived from ErrorMessage, with placeholders replaced by their concrete values.