Create an ArgumentOutOfRangeException
Namespace: log4net.Util
Assembly: log4net (in log4net.dll) Version: 2.0.6.0-.NET 4.0
Syntax
public static ArgumentOutOfRangeException CreateArgumentOutOfRangeException( string parameterName, Object actualValue, string message )
Parameters
- parameterName
- Type: SystemString
The name of the parameter that caused the exception - actualValue
- Type: SystemObject
The value of the argument that causes this exception - message
- Type: SystemString
The message that describes the error
Return Value
Type: ArgumentOutOfRangeExceptionthe ArgumentOutOfRangeException object
Remarks
Create a new instance of the ArgumentOutOfRangeException class with a specified error message, the parameter name, and the value of the argument.
The Compact Framework does not support the 3 parameter constructor for the ArgumentOutOfRangeException type. This method provides an implementation that works for all platforms.
See Also