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
siSerializationInfoThe serialization info.
scStreamingContextThe streaming context.
CapabilityNotSupportedException(string, Element)
Creates a new instance.
public CapabilityNotSupportedException(string capabilityName, Element element)
Parameters
capabilityNamestringThe name of the unsupported capability.
elementElementThe element that does not support the capability.
CapabilityNotSupportedException(string, string, Element)
Creates a new instance.
public CapabilityNotSupportedException(string message, string capabilityName, Element element)
Parameters
messagestringThe exception message.
capabilityNamestringThe name of the unsupported capability.
elementElementThe 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
messagestringThe exception message.
capabilityNamestringThe name of the unsupported capability.
elementElementThe element that does not support the capability.
innerExceptionExceptionThe inner exception.
Properties
CapabilityName
The name of the capability that is unsupported.
public string CapabilityName { get; }
Property Value
Element
The element that does not support the capability.
public Element Element { get; }
Property Value
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
infoSerializationInfoThe SerializationInfo that holds the serialized object data about the exception being thrown.
contextStreamingContextThe StreamingContext that contains contextual information about the source or destination.
Exceptions
- ArgumentNullException
The
infoparameter is a null reference (Nothing in Visual Basic).