Table of Contents

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

path RxPath

The path that causes this exception.

ElementNotFoundException(SerializationInfo, StreamingContext)

Creates a new instance.

protected ElementNotFoundException(SerializationInfo si, StreamingContext sc)

Parameters

si SerializationInfo

The serialization info.

sc StreamingContext

The streaming context.

ElementNotFoundException(string, RxPath)

Creates a new instance.

public ElementNotFoundException(string message, RxPath path)

Parameters

message string

The exception message.

path RxPath

The path that causes this exception.

ElementNotFoundException(string, RxPath, Exception)

Creates a new instance.

public ElementNotFoundException(string message, RxPath path, Exception innerException)

Parameters

message string

The exception message.

path RxPath

The path that causes this exception.

innerException Exception

The inner exception.

Properties

Path

Gets the path that caused this exception.

public RxPath Path { get; }

Property Value

RxPath

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).

SetMetaInfos(IReportMetadata)

Sets the report meta data for this exception instance.

public override void SetMetaInfos(IReportMetadata reportMetadata)

Parameters

reportMetadata IReportMetadata

The report metadata.