Class ElementNotFoundException
- Namespace
- Ranorex
- Assembly
- Ranorex.Core.dll
Exception that is thrown when a specific element is not found in a search method.
public class ElementNotFoundException : RanorexException, ISerializable, _Exception
- Inheritance
-
ElementNotFoundException
- Implements
- Inherited Members
Constructors
ElementNotFoundException()
Creates a new instance.
public ElementNotFoundException()
ElementNotFoundException(RxPath)
Creates a new instance.
public ElementNotFoundException(RxPath path)
Parameters
pathRxPathThe path that causes this exception.
ElementNotFoundException(SerializationInfo, StreamingContext)
Creates a new instance.
protected ElementNotFoundException(SerializationInfo si, StreamingContext sc)
Parameters
siSerializationInfoThe serialization info.
scStreamingContextThe streaming context.
ElementNotFoundException(string, RxPath)
Creates a new instance.
public ElementNotFoundException(string message, RxPath path)
Parameters
ElementNotFoundException(string, RxPath, Exception)
Creates a new instance.
public ElementNotFoundException(string message, RxPath path, Exception innerException)
Parameters
messagestringThe exception message.
pathRxPathThe path that causes this exception.
innerExceptionExceptionThe inner exception.
Properties
Path
Gets the path that caused this exception.
public RxPath Path { 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).
SetMetaInfos(IReportMetadata)
Sets the report meta data for this exception instance.
public override void SetMetaInfos(IReportMetadata reportMetadata)
Parameters
reportMetadataIReportMetadataThe report metadata.