Skip to main content

IndexerDataError

For the complete documentation index, see llms.txt

Midnight.js API Reference v4.1.0


Midnight.js API Reference / @midnight-ntwrk/midnight-js-indexer-public-data-provider / 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:

Construct via the static factory methods to ensure the message and context stay in sync.

Extends​

Constructors​

Constructor​

new IndexerDataError(context): IndexerDataError

Parameters​

context​

IndexerDataErrorContext

Returns​

IndexerDataError

Overrides​

IndexerError.constructor

Properties​

context​

readonly context: IndexerDataErrorContext

Methods​

missingContractAction()​

static missingContractAction(contractAddress): IndexerDataError

Parameters​

contractAddress​

string

Returns​

IndexerDataError


missingIdentifier()​

static missingIdentifier(contractAddress, actionIndex, identifiersLength): IndexerDataError

Parameters​

contractAddress​

string

actionIndex​

number

identifiersLength​

number

Returns​

IndexerDataError


unknownStatus()​

static unknownStatus(value): IndexerDataError

Parameters​

value​

string

Returns​

IndexerDataError