Table of Contents

Class ExpiredIteratorException

Namespace
DynaSharp
Assembly
DynaSharp.dll

A shard iterator is older than the 15 minutes it is valid for. DynamoDB Streams reports it as ExpiredIteratorException.

public sealed class ExpiredIteratorException : DynamoDbException, ISerializable
Inheritance
ExpiredIteratorException
Implements
Inherited Members

Remarks

Not retried by the client: sending the same iterator again fails the same way. ReadShardAsync(ReadShardRequest, CancellationToken) and ReadStreamAsync(ReadStreamRequest, CancellationToken) renew an expired iterator by themselves. A loop of your own gets a new iterator with GetShardIterator, using AfterSequenceNumber and the sequence number of the last record processed to resume without gaps.

Constructors

ExpiredIteratorException(string, string?, HttpStatusCode)

Initializes a new instance of the ExpiredIteratorException class.

public ExpiredIteratorException(string message, string? requestId = null, HttpStatusCode statusCode = HttpStatusCode.BadRequest)

Parameters

message string

The error message returned by DynamoDB Streams.

requestId string

The AWS request id, if known.

statusCode HttpStatusCode

The HTTP status code of the response.