The resolved request options, for the timeout duration and the raw-error opt-in.
The thrown value to normalize.
Whether the failing call used the REST protocol, selecting AniLinkRestError over AniLinkApiError for HTTP failures.
OptionalrequestId: string
The correlation ID to stamp onto the error, when available.
The normalized error, always safe to catch as an AniLinkError.
Normalizes any value thrown during a request into the AniLinkError taxonomy, the single funnel every transport failure flows through.
Already-normalized errors pass through with a missing
requestIdstamped; Axios errors are classified into AniLinkApiError (or AniLinkRestError on REST calls) for HTTP failures, and AniLinkNetworkError for timeouts, network faults, and cancellations; anything else is wrapped in a generic unknown-code AniLinkError.