# IndexerError

> 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) / IndexerError

# Abstract Class: IndexerError

Base class for all errors raised by the indexer public data provider. Consumers can catch any indexer error with a single `instanceof IndexerError` check.

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

* `Error`

## Extended by[​](#extended-by "Direct link to Extended by")

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

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

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

> **new IndexerError**(`message?`): `IndexerError`

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

##### message?[​](#message "Direct link to message?")

`string`

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

`IndexerError`

#### Inherited from[​](#inherited-from "Direct link to Inherited from")

`Error.constructor`

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

> **new IndexerError**(`message?`, `options?`): `IndexerError`

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

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

`string`

##### options?[​](#options "Direct link to options?")

`ErrorOptions`

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

`IndexerError`

#### Inherited from[​](#inherited-from-1 "Direct link to Inherited from")

`Error.constructor`
