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:
- IndexerSubscriptionDataError: missing top-level field on a
subscription payload (server returned
null/undefinedfor a field). - IndexerFormattedError: errors the server explicitly returned
as
GraphQLFormattedErrorentries. - IndexerQueryError: transport / Apollo failure before data is parsed.
Construct via the static factory methods to ensure the message and context stay in sync.
Extends
Constructors
Constructor
new IndexerDataError(
context):IndexerDataError
Parameters
context
Returns
IndexerDataError
Overrides
Properties
context
readonlycontext:IndexerDataErrorContext
Methods
missingContractAction()
staticmissingContractAction(contractAddress):IndexerDataError
Parameters
contractAddress
string
Returns
IndexerDataError
missingIdentifier()
staticmissingIdentifier(contractAddress,actionIndex,identifiersLength):IndexerDataError
Parameters
contractAddress
string
actionIndex
number
identifiersLength
number
Returns
IndexerDataError
unknownStatus()
staticunknownStatus(value):IndexerDataError
Parameters
value
string
Returns
IndexerDataError