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
messagestringThe error message returned by DynamoDB Streams.
requestIdstringThe AWS request id, if known.
statusCodeHttpStatusCodeThe HTTP status code of the response.