Creates a GraphQL error from an HTTP 200 envelope's errors array.
The upstream GraphQL errors; each entry should carry a message.
Optionaldata: unknown
The partial data object returned alongside the errors, when any. Exposed as AniLinkGraphQLError.partialData.
OptionalrawAxiosError: unknown
The original Axios error when raw diagnostics are enabled.
Stable code used to classify the failure.
ReadonlydataResponse body returned by the upstream API, preserved verbatim.
ReadonlygraphqlThe upstream GraphQL errors array carried by the envelope, preserved
verbatim. Beyond message, entries typically carry an upstream status
(distinguishing "entity does not exist" from a server fault) plus
locations and extensions when AniList includes them.
Optional ReadonlypartialThe partial data object returned alongside the GraphQL errors, when
AniList produced a partial success. GraphQL can resolve some fields
while failing others; the usable portion survives here (and on the
inherited AniLinkApiError.data field) instead of being
discarded, so consumers can recover the fields that did resolve.
Optional ReadonlyrateRate-limit accounting parsed from the x-ratelimit-limit,
x-ratelimit-remaining, and x-ratelimit-reset response headers,
whenever AniList includes all three. Use it to self-throttle before
the next request instead of waiting for another 429. It is never
included in the error message so logs stay clean.
Optional ReadonlyrawOriginal Axios or transport error when raw diagnostics were enabled.
ReadonlystatusHTTP status returned by the upstream API.
GraphQL-level failure returned inside an HTTP 200 envelope.
See
GraphQLUpstreamError