Taquito TypeDocs
    Preparing search index...

    Function classifyTransportError

    • Classify a thrown value as a transport-level error.

      Inspects structural properties first (err.code, err.cause.code, err.name), then falls back to message substring matching. Handles node-fetch FetchError, native fetch/undici TypeError + cause chain, browser TypeError, Deno, and Bun.

      Parameters

      • err: unknown

      Returns ClassifiedTransportError | undefined

      the classification, or undefined if the error is not transport-related.