Table of Contents

Class OperationFailedException

Namespace
Ranorex
Assembly
Ranorex.Core.dll

Exception that is thrown when executing an operation on an Element failed.

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

Constructors

OperationFailedException()

Creates a new instance.

public OperationFailedException()

OperationFailedException(SerializationInfo, StreamingContext)

Creates a new instance.

protected OperationFailedException(SerializationInfo si, StreamingContext sc)

Parameters

si SerializationInfo

The serialization info.

sc StreamingContext

The streaming context.

OperationFailedException(string, Element)

Creates a new instance.

public OperationFailedException(string name, Element element)

Parameters

name string

The name of the operation.

element Element

The element for which the operation failed.

OperationFailedException(string, string, Element)

Creates a new instance.

public OperationFailedException(string message, string name, Element element)

Parameters

message string

The exception message.

name string

The name of the operation.

element Element

The element for which the operation failed.

OperationFailedException(string, string, Element, Exception)

Creates a new instance.

public OperationFailedException(string message, string name, Element element, Exception innerException)

Parameters

message string

The exception message.

name string

The name of the operation.

element Element

The element for which the operation failed.

innerException Exception

The inner exception.

Properties

Element

Gets the element for which the operation failed.

public Element Element { get; }

Property Value

Element

Name

Gets the name of the operation that failed.

public string Name { get; }

Property Value

string

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