AniLink - v2.0.0
    Preparing search index...

    Class AniLinkNetworkError

    Network, timeout, cancellation, or circuit-breaker failure.

    Hierarchy (View Summary)

    Index
    • Creates a sanitized transport error.

      Parameters

      • code: "NETWORK_ERROR" | "TIMEOUT_ERROR" | "ABORTED_ERROR" | "CIRCUIT_OPEN_ERROR"

        The stable code for the transport failure.

      • message: string

        A safe message intended for application logs.

      • OptionalrawAxiosError: unknown

        The original Axios error when raw diagnostics are enabled.

      • Optionaloptions: AniLinkNetworkErrorOptions

        Additional transport metadata such as the effective timeout duration.

      Returns AniLinkNetworkError

    Stable code used to classify the failure.

    rawAxiosError?: unknown

    Original Axios or transport error when raw diagnostics were enabled.

    timeoutMs?: number

    The effective timeout duration in milliseconds when this failure was a timeout and a finite timeout was configured. Use it to correlate the error with the timeout option that produced it; absent when the timeout is disabled (0) or the failure is not a timeout.