Constructor()

Namespace ›› System ›› MfArgumentNullException ›› Methods ››
Parent Previous Next

Constructor()

Constructs new instance of MfArgumentNullException

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

Constructor()

Initializes a new instance of the MfArgumentNullException class.

Remarks

This constructor initializes the Message property of the new instance to a system-supplied message that describes the error, such as "Value cannot be null."

Constructor(paramName)

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

Remarks

This constructor initializes the Message property of the new instance to a system-supplied message that describes the error and includes the parameter name.

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

Constructor(paramName, message)

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

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 MfArgumentNullException 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 caused the exception.
Can be instance of MfString or var containing string.