DownloadException
Namespace: Vercel.AI.GenerateText
public sealed class DownloadException : AiSdkException, ISerializableA download failed or the URL is not safe to fetch. Maps to DownloadError.
Inheritance: object → Exception → AiSdkException
Implements: ISerializable
Constructors
Section titled “Constructors”DownloadException(string, string, int?)
Section titled “DownloadException(string, string, int?)”public DownloadException(string url, string message, int? statusCode = null)Creates the exception.
Parameters
| Name | Type | Description |
|---|---|---|
url |
string | |
message |
string | |
statusCode |
int? |
Properties
Section titled “Properties”public string Name { get; }Stable error name.
Value: string
StatusCode
Section titled “StatusCode”public int? StatusCode { get; }HTTP status, when the failure came from a response.
Value: int?
public string Url { get; }URL that was rejected or that failed.
Value: string
Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product