> ## Documentation Index
> Fetch the complete documentation index at: https://docs.abbyy.com/llms.txt
> Use this file to discover all available pages before exploring further.

# IErrorControl

> IErrorControl represents one entry in the FlexiCapture errors window list: read the error text, type, warning flag, and the fields the error relates to.

## What it does

Represents an item in the [IErrorsWindow](/flexi-capture/appendix/scripts-shell/ierrorswindow) list.

## Methods

| **Definition**                                                          | **Description**                                                    |
| ----------------------------------------------------------------------- | ------------------------------------------------------------------ |
| Field( index : int ) : [IField](/flexi-capture/appendix/scripts/ifield) | Retrieves the field related to the error by the index of the error |

## Properties

| **Name**    | **Type**                                                       | **Access** | **Description**                                                                                    |
| ----------- | -------------------------------------------------------------- | ---------- | -------------------------------------------------------------------------------------------------- |
| Error       | string                                                         | Read-only  | The text of the error                                                                              |
| FieldsCount | int                                                            | Read-only  | The number of fields related to the error                                                          |
| Index       | int                                                            | Read-only  | The index of the error in the [IErrorsWindow](/flexi-capture/appendix/scripts-shell/ierrorswindow) |
| IsWarning   | bool                                                           | Read-only  | Specifies whether the error is a warning                                                           |
| Type        | [TErrorType](/flexi-capture/appendix/scripts-shell/terrortype) | Read-only  | The type of the error                                                                              |
