RetryError

class RetryError(message: String, val reason: RetryErrorReason, val errors: List<Throwable>, val attempts: List<RetryAttemptDetail> = errors.mapIndexed { index, error -> RetryAttemptDetail( attempt = index, error = error, retryable = index < errors.lastIndex, delayMs = null, ) }) : AiSdkException(source)

Since

0.3.0-beta01

Constructors

Link copied to clipboard
constructor(message: String, reason: RetryErrorReason, errors: List<Throwable>, attempts: List<RetryAttemptDetail> = errors.mapIndexed { index, error -> RetryAttemptDetail( attempt = index, error = error, retryable = index < errors.lastIndex, delayMs = null, ) })

Properties

Link copied to clipboard
Link copied to clipboard
expect open val cause: Throwable?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
expect open val message: String?
Link copied to clipboard