CommandLineConfigurationException Constructors

Definition

Overloads

CommandLineConfigurationException()

Initializes a new instance of the Exception class.

CommandLineConfigurationException(String)

Initializes a new instance of the Exception class with a specified error message.

CommandLineConfigurationException(SerializationInfo, StreamingContext)

Initializes a new instance of the Exception class with serialized data.

CommandLineConfigurationException(String, Exception)

Initializes a new instance of the Exception class with a specified error message and a reference to the inner exception that is the cause of this exception.

CommandLineConfigurationException()

Initializes a new instance of the Exception class.

public:
 CommandLineConfigurationException();
public CommandLineConfigurationException ();
Public Sub New ()

Applies to

CommandLineConfigurationException(String)

Initializes a new instance of the Exception class with a specified error message.

public:
 CommandLineConfigurationException(System::String ^ message);
public CommandLineConfigurationException (string message);
new System.CommandLine.CommandLineConfigurationException : string -> System.CommandLine.CommandLineConfigurationException
Public Sub New (message As String)

Parameters

message
String

The message that describes the error.

Applies to

CommandLineConfigurationException(SerializationInfo, StreamingContext)

Initializes a new instance of the Exception class with serialized data.

protected:
 CommandLineConfigurationException(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
protected CommandLineConfigurationException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new System.CommandLine.CommandLineConfigurationException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.CommandLine.CommandLineConfigurationException
Protected Sub New (info As SerializationInfo, context As StreamingContext)

Parameters

info
SerializationInfo

The SerializationInfo that holds the serialized object data about the exception being thrown.

context
StreamingContext

The StreamingContext that contains contextual information about the source or destination.

Applies to

CommandLineConfigurationException(String, Exception)

Initializes a new instance of the Exception class with a specified error message and a reference to the inner exception that is the cause of this exception.

public:
 CommandLineConfigurationException(System::String ^ message, Exception ^ innerException);
public CommandLineConfigurationException (string message, Exception innerException);
new System.CommandLine.CommandLineConfigurationException : string * Exception -> System.CommandLine.CommandLineConfigurationException
Public Sub New (message As String, innerException As Exception)

Parameters

message
String

The error message that explains the reason for the exception.

innerException
Exception

The exception that is the cause of the current exception, or a null reference (Nothing in Visual Basic) if no inner exception is specified.

Applies to