Class
ExecuteCommandException

Execute command exception. Occurs when a command fails to execute.

Definition

Namespace:ArtOfTest.WebAii.Exceptions

Assembly:ArtOfTest.WebAii.dll

Syntax:

cs-api-definition
public class ExecuteCommandException : Exception, ISerializable, _Exception

Inheritance: objectExceptionExecuteCommandException

Implements: ISerializable_Exception

Inherited Members Exception.GetBaseException()Exception.ToString()Exception.GetType()Exception.DataException.InnerExceptionException.TargetSiteException.StackTraceException.HelpLinkException.SourceException.HResultException.SerializeObjectState

Constructors

ExecuteCommandException(BrowserCommand, Exception)

Create a new ExecuteCommandException.

Declaration

cs-api-definition
public ExecuteCommandException(BrowserCommand command, Exception innerException)

Parameters

command

BrowserCommand

The command that caused the exception.

innerException

Exception

The inner exception (if any).

ExecuteCommandException(SerializationInfo, StreamingContext)

Initializes a new ExecuteCommandException object.

Declaration

cs-api-definition
public ExecuteCommandException(SerializationInfo info, StreamingContext context)

Parameters

info

SerializationInfo

The data needed to serialize or deserialize an object.

context

StreamingContext

The source and destination of a given serialized stream, and provides an additional caller-defined context.

Properties

Command

Gets the command that caused the exception.

Declaration

cs-api-definition
public BrowserCommand Command { get; }

Property Value

BrowserCommand

Message

Gets the ExecuteCommandException message.

Declaration

cs-api-definition
public override string Message { get; }

Property Value

string

Overrides Exception.Message

Methods

GetObjectData(SerializationInfo, StreamingContext)

Deserializes a ExecuteCommandException object;

Declaration

cs-api-definition
public override void GetObjectData(SerializationInfo info, StreamingContext context)

Parameters

info

SerializationInfo

The data needed to serialize or deserialize an object.

context

StreamingContext

The source and destination of a given serialized stream, and provides an additional caller-defined context.

Overrides Exception.GetObjectData(SerializationInfo, StreamingContext)