Skip to content

RetryException

Namespace: Vercel.AI.ProviderUtils

public sealed class RetryException : Exception, ISerializable

Failure of ExponentialBackoff after at least one retry.

Inheritance: object → Exception

Implements: ISerializable

View source

RetryException(string, RetryErrorReason, IReadOnlyList<Exception>)

Section titled “RetryException(string, RetryErrorReason, IReadOnlyList<Exception>)”
public RetryException(string message, RetryErrorReason reason, IReadOnlyList<Exception> errors)

Creates the exception.

Parameters

Name Type Description
message string
reason RetryErrorReason
errors IReadOnlyList<Exception>

View source

public IReadOnlyList<Exception> Errors { get; }

Errors from each attempt, in order.

Value: IReadOnlyList<Exception>

View source

public RetryErrorReason Reason { get; }

Why retries stopped.

Value: RetryErrorReason

View source

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