RetryException
Namespace: Vercel.AI.ProviderUtils
public sealed class RetryException : Exception, ISerializableFailure of ExponentialBackoff after at least one retry.
Inheritance: object → Exception
Implements: ISerializable
Constructors
Section titled “Constructors”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> |
Properties
Section titled “Properties”Errors
Section titled “Errors”public IReadOnlyList<Exception> Errors { get; }Errors from each attempt, in order.
Value: IReadOnlyList<Exception>
Reason
Section titled “Reason”public RetryErrorReason Reason { get; }Why retries stopped.
Value: RetryErrorReason
Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product