CommandLineArgumentException(String, String, CommandLineArgumentErrorCategory, Exception) Constructor

Initializes a new instance of the CommandLineArgumentException class with a specified error message, argument name, category, and a reference to the inner Exception that is the cause of this CommandLineArgumentException.

Definition

Namespace: Ookii.CommandLine
Assembly: Ookii.CommandLine (in Ookii.CommandLine.dll) Version: 4.2.0+a4d3631e4dcc0970081ed435288efdebc1325f83
C#
public CommandLineArgumentException(
	string? message,
	string? argumentName,
	CommandLineArgumentErrorCategory category,
	Exception? inner
)

Parameters

message  String
The error message that explains the reason for the CommandLineArgumentException.
argumentName  String
The name of the argument that was invalid, or if the error was not caused by a particular argument.
category  CommandLineArgumentErrorCategory
The category of this error.
inner  Exception
The Exception that is the cause of the current CommandLineArgumentException, or a if no inner Exception is specified.

See Also