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
siSerializationInfoThe serialization info.
scStreamingContextThe streaming context.
RanorexException(string)
Creates a new Ranorex exception.
public RanorexException(string message)
Parameters
messagestringThe exception message.
RanorexException(string, Exception)
Creates a new Ranorex exception.
public RanorexException(string message, Exception innerException)
Parameters
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
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).
GetReportMetadata()
Gets the report metadata.
public IReportMetadata GetReportMetadata()
Returns
- IReportMetadata
The report meta data of this instance or
nullif 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
reportMetadataIReportMetadataThe report metadata.