An error that is thrown when one of the arguments provided to a method is not valid.
Initializes a new instance of the ArgumentError class.
The name of the parameter corresponding to the invalid argument.
Optional
The error message. If not specified, a default one will be used.
The name of the method parameter corresponding to the invalid argument.
An error that is thrown when one of the arguments provided to a method is not valid.