Skip to content

RetryableCallException

Namespace: Vercel.AI.Operations

public class RetryableCallException : AiSdkException, ISerializable

A provider HTTP failure that may be retried.

Inheritance: object → Exception → AiSdkException

Implements: ISerializable

View source

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?

View source

public bool IsRetryable { get; }

Whether the operation retry loop should try again.

Value: bool

View source

public IReadOnlyDictionary<string, string>? ResponseHeaders { get; }

Response headers, including retry-after-ms when present.

Value: IReadOnlyDictionary<string, string>

View source

public int? StatusCode { get; }

HTTP status, when the failure came from HTTP.

Value: int?

View source

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