# IndexerDataError

> For the complete documentation index, see [llms.txt](https://docs.midnight.network/llms.txt)

[**Midnight.js API Reference v4.1.0**](https://docs.midnight.network/api-reference/midnight-js.md)

***

[Midnight.js API Reference](https://docs.midnight.network/api-reference/midnight-js/packages.md) / [@midnight-ntwrk/midnight-js-indexer-public-data-provider](https://docs.midnight.network/api-reference/midnight-js/@midnight-ntwrk/midnight-js-indexer-public-data-provider.md) / IndexerDataError

# Class: IndexerDataError

An error raised when indexer-returned data is structurally inconsistent with the provider's expectations: unknown enum values, broken referential integrity between related rows, or missing relations the schema implies should be present.

Distinct from:

* [IndexerSubscriptionDataError](https://docs.midnight.network/api-reference/midnight-js/@midnight-ntwrk/midnight-js-indexer-public-data-provider/classes/IndexerSubscriptionDataError.md): missing top-level field on a subscription payload (server returned `null`/`undefined` for a field).
* [IndexerFormattedError](https://docs.midnight.network/api-reference/midnight-js/@midnight-ntwrk/midnight-js-indexer-public-data-provider/classes/IndexerFormattedError.md): errors the server explicitly returned as `GraphQLFormattedError` entries.
* [IndexerQueryError](https://docs.midnight.network/api-reference/midnight-js/@midnight-ntwrk/midnight-js-indexer-public-data-provider/classes/IndexerQueryError.md): transport / Apollo failure before data is parsed.

Construct via the static factory methods to ensure the message and [context](#context) stay in sync.

## Extends[​](#extends "Direct link to Extends")

* [`IndexerError`](https://docs.midnight.network/api-reference/midnight-js/@midnight-ntwrk/midnight-js-indexer-public-data-provider/classes/IndexerError.md)

## Constructors[​](#constructors "Direct link to Constructors")

### Constructor[​](#constructor "Direct link to Constructor")

> **new IndexerDataError**(`context`): `IndexerDataError`

#### Parameters[​](#parameters "Direct link to Parameters")

##### context[​](#context "Direct link to context")

[`IndexerDataErrorContext`](https://docs.midnight.network/api-reference/midnight-js/@midnight-ntwrk/midnight-js-indexer-public-data-provider/type-aliases/IndexerDataErrorContext.md)

#### Returns[​](#returns "Direct link to Returns")

`IndexerDataError`

#### Overrides[​](#overrides "Direct link to Overrides")

[`IndexerError`](https://docs.midnight.network/api-reference/midnight-js/@midnight-ntwrk/midnight-js-indexer-public-data-provider/classes/IndexerError.md).[`constructor`](https://docs.midnight.network/api-reference/midnight-js/@midnight-ntwrk/midnight-js-indexer-public-data-provider/classes/IndexerError.md#constructor)

## Properties[​](#properties "Direct link to Properties")

### context[​](#context-1 "Direct link to context")

> `readonly` **context**: [`IndexerDataErrorContext`](https://docs.midnight.network/api-reference/midnight-js/@midnight-ntwrk/midnight-js-indexer-public-data-provider/type-aliases/IndexerDataErrorContext.md)

## Methods[​](#methods "Direct link to Methods")

### missingContractAction()[​](#missingcontractaction "Direct link to missingContractAction()")

> `static` **missingContractAction**(`contractAddress`): `IndexerDataError`

#### Parameters[​](#parameters-1 "Direct link to Parameters")

##### contractAddress[​](#contractaddress "Direct link to contractAddress")

`string`

#### Returns[​](#returns-1 "Direct link to Returns")

`IndexerDataError`

***

### missingIdentifier()[​](#missingidentifier "Direct link to missingIdentifier()")

> `static` **missingIdentifier**(`contractAddress`, `actionIndex`, `identifiersLength`): `IndexerDataError`

#### Parameters[​](#parameters-2 "Direct link to Parameters")

##### contractAddress[​](#contractaddress-1 "Direct link to contractAddress")

`string`

##### actionIndex[​](#actionindex "Direct link to actionIndex")

`number`

##### identifiersLength[​](#identifierslength "Direct link to identifiersLength")

`number`

#### Returns[​](#returns-2 "Direct link to Returns")

`IndexerDataError`

***

### unknownStatus()[​](#unknownstatus "Direct link to unknownStatus()")

> `static` **unknownStatus**(`value`): `IndexerDataError`

#### Parameters[​](#parameters-3 "Direct link to Parameters")

##### value[​](#value "Direct link to value")

`string`

#### Returns[​](#returns-3 "Direct link to Returns")

`IndexerDataError`
