Skip to content

OperationRetryException

Namespace: Vercel.AI.Operations

public sealed class OperationRetryException : AiSdkException, ISerializable

Retries were exhausted. LastError is the final attempt.

Inheritance: object → Exception → AiSdkException

Implements: ISerializable

View source

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>

View source

public IReadOnlyList<Exception> Errors { get; }

Errors from each attempt.

Value: IReadOnlyList<Exception>

View source

public Exception? LastError { get; }

The last attempt’s error.

Value: Exception

View source

public string Reason { get; }

maxRetriesExceeded or errorNotRetryable.

Value: string

View source

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