Table of Contents

Class ImageValidationException

Namespace
Ranorex
Assembly
Ranorex.Core.dll

Exception that is thrown when an image is not found in a search method.

public class ImageValidationException : ValidationException, ISerializable, _Exception
Inheritance
ImageValidationException
Implements
Inherited Members

Constructors

ImageValidationException()

Creates a new instance.

public ImageValidationException()

ImageValidationException(Bitmap)

Creates a new instance.

public ImageValidationException(Bitmap image)

Parameters

image Bitmap

The image which was searched in.

ImageValidationException(Bitmap, Bitmap)

Creates a new instance.

public ImageValidationException(Bitmap image, Bitmap feature)

Parameters

image Bitmap

The image in which the feature was searched.

feature Bitmap

The feature that was searched for.

ImageValidationException(SerializationInfo, StreamingContext)

Creates a new instance.

protected ImageValidationException(SerializationInfo si, StreamingContext sc)

Parameters

si SerializationInfo

The serialization info.

sc StreamingContext

The streaming context.

ImageValidationException(string, Bitmap)

Creates a new instance.

public ImageValidationException(string message, Bitmap image)

Parameters

message string

The exception message.

image Bitmap

The image which was searched in.

ImageValidationException(string, Bitmap, Bitmap)

Creates a new instance.

public ImageValidationException(string message, Bitmap image, Bitmap feature)

Parameters

message string

The exception message.

image Bitmap

The image in which the feature was searched.

feature Bitmap

The feature that was searched for.

ImageValidationException(string, Bitmap, Bitmap, Exception)

Creates a new instance.

public ImageValidationException(string message, Bitmap image, Bitmap feature, Exception innerException)

Parameters

message string

The exception message.

image Bitmap

The image in which the feature was searched.

feature Bitmap

The feature that was searched for.

innerException Exception

The inner exception.

ImageValidationException(string, Bitmap, Exception)

Creates a new instance.

public ImageValidationException(string message, Bitmap image, Exception innerException)

Parameters

message string

The exception message.

image Bitmap

The image which was searched in.

innerException Exception

The inner exception.

Properties

Feature

Gets the feature that was searched for.

public Bitmap Feature { get; }

Property Value

Bitmap

Image

Gets the image in which the Feature was searched.

public Bitmap Image { get; }

Property Value

Bitmap

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