CommandLineArgumentException Class |
Namespace: Ookii.CommandLine
The CommandLineArgumentException type exposes the following members.
Name | Description | |
---|---|---|
![]() | CommandLineArgumentException |
Initializes a new instance of the CommandLineArgumentException class.
|
![]() | CommandLineArgumentException(String) |
Initializes a new instance of the CommandLineArgumentException class with a specified error message.
|
![]() | CommandLineArgumentException(SerializationInfo, StreamingContext) |
Initializes a new instance of the CommandLineArgumentException class with serialized data.
|
![]() | CommandLineArgumentException(String, CommandLineArgumentErrorCategory) |
Initializes a new instance of the CommandLineArgumentException class with a specified error message.
|
![]() | CommandLineArgumentException(String, Exception) |
Initializes a new instance of the CommandLineArgumentException class with a specified error message and a reference to the inner Exception that is the cause of this CommandLineArgumentException.
|
![]() | CommandLineArgumentException(String, CommandLineArgumentErrorCategory, Exception) |
Initializes a new instance of the CommandLineArgumentException class with a specified error message and a reference to the inner Exception that is the cause of this CommandLineArgumentException.
|
![]() | CommandLineArgumentException(String, String, CommandLineArgumentErrorCategory) |
Initializes a new instance of the CommandLineArgumentException class with a specified error message and argument name.
|
![]() | CommandLineArgumentException(String, String, CommandLineArgumentErrorCategory, Exception) |
Initializes a new instance of the CommandLineArgumentException class with a specified error message and argument name, and a reference to the inner Exception that is the cause of this CommandLineArgumentException.
|
Name | Description | |
---|---|---|
![]() | ArgumentName |
Gets the name of the argument that was invalid.
|
![]() | Category |
Gets the category of this error.
|
![]() | Data | (Inherited from Exception.) |
![]() | HelpLink | (Inherited from Exception.) |
![]() | HResult | (Inherited from Exception.) |
![]() | InnerException | (Inherited from Exception.) |
![]() | Message | (Inherited from Exception.) |
![]() | Source | (Inherited from Exception.) |
![]() | StackTrace | (Inherited from Exception.) |
![]() | TargetSite | (Inherited from Exception.) |
Name | Description | |
---|---|---|
![]() | Equals | (Inherited from Object.) |
![]() | Finalize | (Inherited from Object.) |
![]() | GetBaseException | (Inherited from Exception.) |
![]() | GetHashCode | (Inherited from Object.) |
![]() | GetObjectData |
Sets the SerializationInfo object with the parameter name and additional exception information.
(Overrides ExceptionGetObjectData(SerializationInfo, StreamingContext).) |
![]() | GetType | (Inherited from Exception.) |
![]() | MemberwiseClone | (Inherited from Object.) |
![]() | ToString | (Inherited from Exception.) |
This exception indicates that the command line passed to the Parse(String) method was invalid for the arguments defined by the CommandLineParser instance.
The exception can indicate that too many positional arguments were supplied, a required argument was not supplied, an unknown argument name was supplied, no value was supplied for a named argument, an argument was supplied more than once and the AllowDuplicateArguments property is , or one of the argument values could not be converted to the argument's type.