Skip to content

DownloadException

Namespace: Vercel.AI.Operations

public sealed class DownloadException : AiSdkException, ISerializable

Downloading generated media failed.

Inheritance: object → Exception → AiSdkException

Implements: ISerializable

View source

public DownloadException(string url, int statusCode, string? statusText)

Creates the exception.

Parameters

Name Type Description
url string
statusCode int
statusText string

View source

public int StatusCode { get; }

HTTP status.

Value: int

View source

public string Url { get; }

URL that failed.

Value: string

View source

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