Creates a sanitized AniLink error.
A safe message intended for application logs.
The stable code used to classify the failure.
OptionalrawAxiosError: unknown
The original Axios error when raw diagnostics are enabled.
Optionaloptions: { requestId?: string }
Additional error metadata such as the request correlation ID.
Stable code used to classify the failure.
Optional ReadonlyrawOriginal Axios or transport error when raw diagnostics were enabled.
Optional ReadonlyrequestLibrary-generated correlation ID joining this failure to the
onRequestStart/onResponse/onRetry/onError hook events it
produced, so a caught error can be matched to its lifecycle stream in a
metrics or logging backend. Absent on errors raised outside the
request pipeline (for example validation errors thrown before any
request is sent).
Base error for failures normalized by AniLink.
Consumers can branch on AniLinkError.code without depending on the underlying Axios error or a provider's human-readable message.
See
AniLinkErrorCodes