Table of Contents

Class CapabilityNotSupportedException

Namespace
Ranorex
Assembly
Ranorex.Core.dll

Exception that is thrown when an element does not provide a required capability.

public class CapabilityNotSupportedException : RanorexException, ISerializable, _Exception
Inheritance
CapabilityNotSupportedException
Implements
Inherited Members

Constructors

CapabilityNotSupportedException()

Creates a new instance.

public CapabilityNotSupportedException()

CapabilityNotSupportedException(SerializationInfo, StreamingContext)

Creates a new instance.

protected CapabilityNotSupportedException(SerializationInfo si, StreamingContext sc)

Parameters

si SerializationInfo

The serialization info.

sc StreamingContext

The streaming context.

CapabilityNotSupportedException(string, Element)

Creates a new instance.

public CapabilityNotSupportedException(string capabilityName, Element element)

Parameters

capabilityName string

The name of the unsupported capability.

element Element

The element that does not support the capability.

CapabilityNotSupportedException(string, string, Element)

Creates a new instance.

public CapabilityNotSupportedException(string message, string capabilityName, Element element)

Parameters

message string

The exception message.

capabilityName string

The name of the unsupported capability.

element Element

The element that does not support the capability.

CapabilityNotSupportedException(string, string, Element, Exception)

Creates a new instance.

public CapabilityNotSupportedException(string message, string capabilityName, Element element, Exception innerException)

Parameters

message string

The exception message.

capabilityName string

The name of the unsupported capability.

element Element

The element that does not support the capability.

innerException Exception

The inner exception.

Properties

CapabilityName

The name of the capability that is unsupported.

public string CapabilityName { get; }

Property Value

string

Element

The element that does not support the capability.

public Element Element { get; }

Property Value

Element

Methods

GetObjectData(SerializationInfo, StreamingContext)

When overridden in a derived class, sets the SerializationInfo with information about the exception.

public override void GetObjectData(SerializationInfo info, StreamingContext context)

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.

Exceptions

ArgumentNullException

The info parameter is a null reference (Nothing in Visual Basic).