@usethrottle/cart
    Preparing search index...

    Function cartErrorFromResponse

    • Map a raw API error envelope to the most specific Cart SDK error class. Falls back to ThrottleApiError for everything unrecognised.

      Parameters

      • args: {
            code: string;
            details?: Record<string, unknown>;
            message: string;
            statusCode: number;
        }

      Returns ThrottleApiError