Skip to content

API ReferenceErrorsClass

SubgraphCompatibilityError

Indexed data cannot be normalized faithfully by this SDK. This diagnosis rejects the complete read; network failures keep their original diagnosis.

Extends

Constructors

Constructor

new SubgraphCompatibilityError(
reason,
message,
cause?
): SubgraphCompatibilityError;

Parameters

ParameterType
reasonSubgraphCompatibilityReason
messagestring
cause?unknown

Returns

SubgraphCompatibilityError

Overrides

BaseError.constructor

Properties

reason

readonly reason: SubgraphCompatibilityReason;

Methods

walk()

walk<T>(errorType): T | undefined;

Checks if the provided ErrorType is in the error hierarchy for the current error.

Type Parameters

Type ParameterDescription
T extends ErrorThe type of the error being searched for.

Parameters

ParameterTypeDescription
errorType(…args) => TThe error type to find.

Returns

T | undefined

The error, if it is found in the hierarchy, otherwise undefined.

Inherited from

BaseError.walk