CommandException Constructors

Definition

Overloads

CommandException()

Initializes a new instance of the CommandException class.

CommandException(String)

Initializes a new instance of the CommandException class by using the provided message.

CommandException(SerializationInfo, StreamingContext)

Initializes a new instance of the CommandException class by using the provided information and context.

CommandException(String, Exception)

Initializes a new instance of the CommandException class by using the provided message and inner exception.

CommandException()

Initializes a new instance of the CommandException class.

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

Applies to

CommandException(String)

Initializes a new instance of the CommandException class by using the provided message.

public:
 CommandException(System::String ^ msg);
public CommandException (string msg);
new Microsoft.VisualStudio.TestTools.Exceptions.CommandException : string -> Microsoft.VisualStudio.TestTools.Exceptions.CommandException
Public Sub New (msg As String)

Parameters

msg
String

Message that describes the exception.

Applies to

CommandException(SerializationInfo, StreamingContext)

Initializes a new instance of the CommandException class by using the provided information and context.

protected:
 CommandException(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
protected CommandException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new Microsoft.VisualStudio.TestTools.Exceptions.CommandException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> Microsoft.VisualStudio.TestTools.Exceptions.CommandException
Protected Sub New (info As SerializationInfo, context As StreamingContext)

Parameters

info
SerializationInfo

Information about the exception.

context
StreamingContext

The source and the destination of the exception.

Applies to

CommandException(String, Exception)

Initializes a new instance of the CommandException class by using the provided message and inner exception.

public:
 CommandException(System::String ^ msg, Exception ^ inner);
public CommandException (string msg, Exception inner);
new Microsoft.VisualStudio.TestTools.Exceptions.CommandException : string * Exception -> Microsoft.VisualStudio.TestTools.Exceptions.CommandException
Public Sub New (msg As String, inner As Exception)

Parameters

msg
String

Message that describes the exception.

inner
Exception

Exception that caused the current exception.

Applies to