AniLink - v3.1.0
    Preparing search index...

    Class AniLinkError

    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.

    Hierarchy (View Summary)

    Index
    • Creates a sanitized AniLink error.

      Parameters

      • message: string

        A safe message intended for application logs.

      • code: AniLinkErrorCode

        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.

      Returns AniLinkError

    Stable code used to classify the failure.

    rawAxiosError?: unknown

    Original Axios or transport error when raw diagnostics were enabled.

    requestId?: string

    Library-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).