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

# RuleError オブジェクト（IRuleError インターフェイス）

このオブジェクトはルールエラーに対応します。ルールとは、field内のデータに課される特定の条件です。ドキュメント内の値がこれらの条件を満たさない場合、ルールエラーが発生します。ルールを適用する主な目的は、ドキュメントデータの整合性をチェックすることです。ドキュメントのすべてのルールエラーは、[**RuleErrors**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/ruleerrors.md) オブジェクトで表されます。

## Properties

| **名前** | **型** | **説明** |
| - | - | - |
| **Context** | [**Field**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/field.md)、[読み取り専用](https://docs.abbyy.com/ja/flexi-capture/sdk/guided-tour/properties.md#readonly-properties) | ルールチェック時にルールのコンテキストとして使用された field を指定します。 |
| **Fields** | [**Fields**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/fields.md) | チェックされた field のコレクションを返します。 |
| **FieldToFocus** | [**Field**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/field.md)、[読み取り専用](https://docs.abbyy.com/ja/flexi-capture/sdk/guided-tour/properties.md#readonly-properties) | フォーカスを設定する field を指定します。 |
| **IsFormatError** | [**Boolean**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/propertiestypes.md)、読み取り専用 | エラーが書式エラーかどうかを指定します。データ入力 field では通常、入力値として特定の書式のデータが求められます。文書処理中に認識済みの field 値が設定されたデータ型と一致しない場合、ルールエラーが生成され、該当するルールエラーのこのプロパティは TRUE を返します。 |
| **Rule** | [**Rule**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/rule.md)、[読み取り専用](https://docs.abbyy.com/ja/flexi-capture/sdk/guided-tour/properties.md#readonly-properties) | エラーを生成したルールを指定します。**IsFormatError** プロパティの値が TRUE の場合、このプロパティの値は 0 になることがあります。 |
| **Severity** | [**RuleErrorSeverityEnum**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/ruleerrorseverityenum.md)、読み取り専用 | エラーの重大度を指定します。 |
| **Text** | [**String**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/propertiestypes.md)、読み取り専用 | エラーの説明テキストを格納します。 |

## 関連オブジェクト

![](https://mintcdn.com/abbyy/DG4YBah30S0eFFo5/images/flexi-capture/sdk/RuleError.gif?s=6596ed8994af40ce53b76e3e3d56fa2e)

## 出力パラメーター

このオブジェクトは、[**RuleErrors**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/ruleerrors.md) オブジェクトの [**Item**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/item.md) メソッドの出力パラメーターです。

## 関連項目

[**RuleErrors**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/ruleerrors.md)

[Properties の操作](https://docs.abbyy.com/ja/flexi-capture/sdk/guided-tour/properties.md)
