DownloadException
Namespace: E2E.Decision.Sdk
public sealed class DownloadException : Exception, ISerializableThe AI SDK’s DownloadError (@ai-sdk/provider-utils): a file the SDK could not download.
Inheritance: object → Exception
Implements: ISerializable
Constructors
Section titled “Constructors”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 |
Properties
Section titled “Properties”StatusCode
Section titled “StatusCode”public int? StatusCode { get; }The HTTP status of the answer; null when none came.
Value: int?
StatusText
Section titled “StatusText”public string? StatusText { get; }The reason phrase of the answer.
Value: string
public string Url { get; }The URL that failed.
Value: string