Table of Contents

Class RanorexException

Namespace
Ranorex
Assembly
Ranorex.Core.dll

The base class for all Ranorex-specific exceptions.

public class RanorexException : Exception, ISerializable, _Exception
Inheritance
RanorexException
Implements
Derived
Inherited Members

Constructors

RanorexException()

Creates a new Ranorex exception.

public RanorexException()

RanorexException(SerializationInfo, StreamingContext)

Initializes a new instance of the RanorexException class.

protected RanorexException(SerializationInfo si, StreamingContext sc)

Parameters

si SerializationInfo

The serialization info.

sc StreamingContext

The streaming context.

RanorexException(string)

Creates a new Ranorex exception.

public RanorexException(string message)

Parameters

message string

The exception message.

RanorexException(string, Exception)

Creates a new Ranorex exception.

public RanorexException(string message, Exception innerException)

Parameters

message string

The exception message.

innerException Exception

The inner exception.

Properties

MetaInfos

Gets or sets a dictionary containing report meta infos for this exception.

public IDictionary<string, string> MetaInfos { get; set; }

Property Value

IDictionary<string, string>

A dictionary containing meta infos for this exception.

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

GetReportMetadata()

Gets the report metadata.

public IReportMetadata GetReportMetadata()

Returns

IReportMetadata

The report meta data of this instance or null if no meta data has been set for this instance.

SetMetaInfos(IReportMetadata)

Sets the report meta data for this exception instance.

public virtual void SetMetaInfos(IReportMetadata reportMetadata)

Parameters

reportMetadata IReportMetadata

The report metadata.