OperationRetryException
Namespace: Vercel.AI.Operations
public sealed class OperationRetryException : AiSdkException, ISerializableRetries were exhausted. LastError is the final attempt.
Inheritance: object → Exception → AiSdkException
Implements: ISerializable
Constructors
Section titled “Constructors”OperationRetryException(string, string, IReadOnlyList<Exception>)
Section titled “OperationRetryException(string, string, IReadOnlyList<Exception>)”public OperationRetryException(string message, string reason, IReadOnlyList<Exception> errors)Creates a retry failure.
Parameters
| Name | Type | Description |
|---|---|---|
message |
string | |
reason |
string | |
errors |
IReadOnlyList<Exception> |
Properties
Section titled “Properties”Errors
Section titled “Errors”public IReadOnlyList<Exception> Errors { get; }Errors from each attempt.
Value: IReadOnlyList<Exception>
LastError
Section titled “LastError”public Exception? LastError { get; }The last attempt’s error.
Value: Exception
Reason
Section titled “Reason”public string Reason { get; }maxRetriesExceeded or errorNotRetryable.
Value: string
Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product