pub enum GetShardIteratorError {
InternalServerError(String),
ResourceNotFound(String),
TrimmedDataAccess(String),
}
Expand description
Errors returned by GetShardIterator
Variants§
InternalServerError(String)
An error occurred on the server side.
ResourceNotFound(String)
The operation tried to access a nonexistent stream.
TrimmedDataAccess(String)
The operation attempted to read past the oldest stream record in a shard.
In DynamoDB Streams, there is a 24 hour limit on data retention. Stream records whose age exceeds this limit are subject to removal (trimming) from the stream. You might receive a TrimmedDataAccessException if:
You request a shard iterator with a sequence number older than the trim point (24 hours).
You obtain a shard iterator, but before you use the iterator in a
GetRecords
request, a stream record in the shard exceeds the 24 hour period and is trimmed. This causes the iterator to access a record that no longer exists.
Implementations§
Source§impl GetShardIteratorError
impl GetShardIteratorError
pub fn from_response( res: BufferedHttpResponse, ) -> RusotoError<GetShardIteratorError>
Trait Implementations§
Source§impl Debug for GetShardIteratorError
impl Debug for GetShardIteratorError
Source§impl Display for GetShardIteratorError
impl Display for GetShardIteratorError
Source§impl Error for GetShardIteratorError
impl Error for GetShardIteratorError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl PartialEq for GetShardIteratorError
impl PartialEq for GetShardIteratorError
impl StructuralPartialEq for GetShardIteratorError
Auto Trait Implementations§
impl Freeze for GetShardIteratorError
impl RefUnwindSafe for GetShardIteratorError
impl Send for GetShardIteratorError
impl Sync for GetShardIteratorError
impl Unpin for GetShardIteratorError
impl UnwindSafe for GetShardIteratorError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more