Skip to content

DownloadException

Namespace: Vercel.AI.GenerateText

public sealed class DownloadException : AiSdkException, ISerializable

A download failed or the URL is not safe to fetch. Maps to DownloadError.

Inheritance: object → Exception → AiSdkException

Implements: ISerializable

View source

public DownloadException(string url, string message, int? statusCode = null)

Creates the exception.

Parameters

Name Type Description
url string
message string
statusCode int?

View source

public string Name { get; }

Stable error name.

Value: string

View source

public int? StatusCode { get; }

HTTP status, when the failure came from a response.

Value: int?

View source

public string Url { get; }

URL that was rejected or that failed.

Value: string

View source

Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product