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
siSerializationInfoThe serialization info.
scStreamingContextThe streaming context.
OperationFailedException(string, Element)
Creates a new instance.
public OperationFailedException(string name, Element element)
Parameters
OperationFailedException(string, string, Element)
Creates a new instance.
public OperationFailedException(string message, string name, Element element)
Parameters
messagestringThe exception message.
namestringThe name of the operation.
elementElementThe 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
messagestringThe exception message.
namestringThe name of the operation.
elementElementThe element for which the operation failed.
innerExceptionExceptionThe inner exception.
Properties
Element
Gets the element for which the operation failed.
public Element Element { get; }
Property Value
Name
Gets the name of the operation that failed.
public string Name { 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).