DownloadException
Namespace: Vercel.AI.Operations
public sealed class DownloadException : AiSdkException, ISerializableDownloading generated media failed.
Inheritance: object → Exception → AiSdkException
Implements: ISerializable
Constructors
Section titled “Constructors”DownloadException(string, int, string?)
Section titled “DownloadException(string, int, string?)”public DownloadException(string url, int statusCode, string? statusText)Creates the exception.
Parameters
| Name | Type | Description |
|---|---|---|
url |
string | |
statusCode |
int | |
statusText |
string |
Properties
Section titled “Properties”StatusCode
Section titled “StatusCode”public int StatusCode { get; }HTTP status.
Value: int
public string Url { get; }URL that failed.
Value: string
Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product