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.0.0+bb7ed9a8fdfd1cb21824750a8cf508863ad15086
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