Skip to content

DownloadException

Namespace: E2E.Decision.Sdk

public sealed class DownloadException : Exception, ISerializable

The AI SDK’s DownloadError (@ai-sdk/provider-utils): a file the SDK could not download.

Inheritance: object → Exception

Implements: ISerializable

View source

DownloadException(string, int?, string?, string?, Exception?)

Section titled “DownloadException(string, int?, string?, string?, Exception?)”
public DownloadException(string url, int? statusCode = null, string? statusText = null, string? message = null, Exception? innerException = null)

Creates the error. Without <code class=“paramref”>message</code>, it reads as upstream’s: the status, or the inner error.

Parameters

Name Type Description
url string
statusCode int?
statusText string
message string
innerException Exception

public int? StatusCode { get; }

The HTTP status of the answer; null when none came.

Value: int?

public string? StatusText { get; }

The reason phrase of the answer.

Value: string

public string Url { get; }

The URL that failed.

Value: string