Constructor()

Parent Previous Next

Constructor()

OutputVar := new MfArgumentOutOfRangeException()
OutputVar := new MfArgumentOutOfRangeException(paramName)
OutputVar := new MfArgumentOutOfRangeException(paramName, message)
OutputVar := new MfArgumentOutOfRangeException(message, innerException)

Constructor()

Initializes a new instance of the MfArgumentOutOfRangeException class.

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."

Constructor(paramName)

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

Remarks

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.

Constructor(message, innerException)

Initializes a new instance of MfArgumentOutOfRangeException class with a specified error message and a reference to the inner exception that is the cause of this exception.

Remarks

An exception that is thrown as a direct result of a previous exception can include a reference to the previous exception in the InnerException property. The InnerException property returns the same value that is passed into the constructor, or a null reference if the InnerException property does not supply the inner exception value to the constructor.

Constructor(paramName, message)

Initializes a new instance of MfArgumentOutOfRangeException class with the name of the parameter that causes this exception and a specified error message.

Remarks

This constructor initializes the Message property of the new instance using the value of the message parameter. The content of the message parameter is intended to be understood by humans. The caller of this constructor is required to ensure that this string has been localized for 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.

Constructor(message, innerException)

Initializes a new instance of MfArgumentOutOfRangeException class with a specified error message and a reference to the inner exception that is the cause of this exception.

Remarks

An exception that is thrown as a direct result of a previous exception can include a reference to the previous exception in the InnerException property. The InnerException property returns the same value that is passed into the constructor, or a null reference if the InnerException property does not supply the inner exception value to the constructor.

Parameters

message

The error message that explains the reason for the exception.
Can be instance of MfString or var containing string.

innerException

The exception that is the cause of the current exception, or a null reference if no inner exception is specified.
Can be AutoHotkey Exception or any MfException instance or derived class instance.

paramName

The name of the parameter that causes this exception.