RetryableCallException
Namespace: Vercel.AI.Operations
public class RetryableCallException : AiSdkException, ISerializableA provider HTTP failure that may be retried.
Inheritance: object → Exception → AiSdkException
Implements: ISerializable
Constructors
Section titled “Constructors”RetryableCallException(string, int?, IReadOnlyDictionary<string, string>?, bool?)
Section titled “RetryableCallException(string, int?, IReadOnlyDictionary<string, string>?, bool?)”public RetryableCallException(string message, int? statusCode, IReadOnlyDictionary<string, string>? responseHeaders, bool? isRetryable = null)Creates a retryable provider error.
Parameters
| Name | Type | Description |
|---|---|---|
message |
string | |
statusCode |
int? | |
responseHeaders |
IReadOnlyDictionary<string, string> | |
isRetryable |
bool? |
Properties
Section titled “Properties”IsRetryable
Section titled “IsRetryable”public bool IsRetryable { get; }Whether the operation retry loop should try again.
Value: bool
ResponseHeaders
Section titled “ResponseHeaders”public IReadOnlyDictionary<string, string>? ResponseHeaders { get; }Response headers, including retry-after-ms when present.
Value: IReadOnlyDictionary<string, string>
StatusCode
Section titled “StatusCode”public int? StatusCode { get; }HTTP status, when the failure came from HTTP.
Value: int?
Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product