pub enum DynamoDbStoreInternalError {
Show 23 variants
Get(Box<SdkError<GetItemError>>),
BatchWriteItem(Box<SdkError<BatchWriteItemError>>),
TransactWriteItem(Box<SdkError<TransactWriteItemsError>>),
Query(Box<SdkError<QueryError>>),
DeleteTable(Box<SdkError<DeleteTableError>>),
ListTables(Box<SdkError<ListTablesError>>),
DescribeTables(Box<SdkError<DescribeTableError>>),
TransactUpperLimitSize,
ZeroLengthKey,
KeyTooLong,
KeyPrefixTooLong,
ZeroLengthKeyPrefix,
DatabaseRecoveryFailed,
JournalConsistencyError(JournalConsistencyError),
ValueLengthTooLarge,
MissingKey,
WrongKeyType(String),
MissingValue,
WrongValueType(String),
BcsError(Error),
InvalidNamespace(InvalidNamespace),
CreateTable(SdkError<CreateTableError>),
Build(Box<BuildError>),
}
Expand description
Errors that occur when using DynamoDbStoreInternal
.
Variants§
Get(Box<SdkError<GetItemError>>)
An error occurred while getting the item.
BatchWriteItem(Box<SdkError<BatchWriteItemError>>)
An error occurred while writing a batch of items.
TransactWriteItem(Box<SdkError<TransactWriteItemsError>>)
An error occurred while writing a transaction of items.
Query(Box<SdkError<QueryError>>)
An error occurred while doing a Query.
DeleteTable(Box<SdkError<DeleteTableError>>)
An error occurred while deleting a table
ListTables(Box<SdkError<ListTablesError>>)
An error occurred while listing tables
DescribeTables(Box<SdkError<DescribeTableError>>)
An error occurred while describing tables
TransactUpperLimitSize
The transact maximum size is MAX_TRANSACT_WRITE_ITEM_SIZE
.
ZeroLengthKey
Keys have to be of non-zero length.
KeyTooLong
The key must have at most 1024 bytes
KeyPrefixTooLong
The key prefix must have at most 1024 bytes
ZeroLengthKeyPrefix
Key prefixes have to be of non-zero length.
DatabaseRecoveryFailed
The recovery failed.
JournalConsistencyError(JournalConsistencyError)
The journal is not coherent
ValueLengthTooLarge
The length of the value should be at most 400 KB.
MissingKey
The stored key is missing.
WrongKeyType(String)
The type of the keys was not correct (It should have been a binary blob).
MissingValue
The value attribute is missing.
WrongValueType(String)
The value was stored as the wrong type (it should be a binary blob).
BcsError(Error)
A BCS error occurred.
InvalidNamespace(InvalidNamespace)
A wrong namespace error occurred
CreateTable(SdkError<CreateTableError>)
An error occurred while creating the table.
Build(Box<BuildError>)
An error occurred while building an object
Implementations§
source§impl DynamoDbStoreInternalError
impl DynamoDbStoreInternalError
sourcepub fn wrong_key_type(value: &AttributeValue) -> Self
pub fn wrong_key_type(value: &AttributeValue) -> Self
Creates a DynamoDbStoreInternalError::WrongKeyType
instance based on the returned value type.
§Panics
If the value type is in the correct type, a binary blob.
sourcepub fn wrong_value_type(value: &AttributeValue) -> Self
pub fn wrong_value_type(value: &AttributeValue) -> Self
Creates a DynamoDbStoreInternalError::WrongValueType
instance based on the returned value type.
§Panics
If the value type is in the correct type, a binary blob.
Trait Implementations§
source§impl Debug for DynamoDbStoreInternalError
impl Debug for DynamoDbStoreInternalError
source§impl Display for DynamoDbStoreInternalError
impl Display for DynamoDbStoreInternalError
source§impl Error for DynamoDbStoreInternalError
impl Error for DynamoDbStoreInternalError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
source§impl From<Box<BuildError>> for DynamoDbStoreInternalError
impl From<Box<BuildError>> for DynamoDbStoreInternalError
source§fn from(source: Box<BuildError>) -> Self
fn from(source: Box<BuildError>) -> Self
source§impl From<Box<SdkError<DeleteTableError, Response>>> for DynamoDbStoreInternalError
impl From<Box<SdkError<DeleteTableError, Response>>> for DynamoDbStoreInternalError
source§impl From<Box<SdkError<GetItemError, Response>>> for DynamoDbStoreInternalError
impl From<Box<SdkError<GetItemError, Response>>> for DynamoDbStoreInternalError
source§impl From<Box<SdkError<ListTablesError, Response>>> for DynamoDbStoreInternalError
impl From<Box<SdkError<ListTablesError, Response>>> for DynamoDbStoreInternalError
source§impl From<Box<SdkError<QueryError, Response>>> for DynamoDbStoreInternalError
impl From<Box<SdkError<QueryError, Response>>> for DynamoDbStoreInternalError
source§impl From<BuildError> for DynamoDbStoreInternalError
impl From<BuildError> for DynamoDbStoreInternalError
source§fn from(error: BuildError) -> Self
fn from(error: BuildError) -> Self
source§impl From<Error> for DynamoDbStoreInternalError
impl From<Error> for DynamoDbStoreInternalError
source§impl From<InvalidNamespace> for DynamoDbStoreInternalError
impl From<InvalidNamespace> for DynamoDbStoreInternalError
source§fn from(source: InvalidNamespace) -> Self
fn from(source: InvalidNamespace) -> Self
source§impl From<JournalConsistencyError> for DynamoDbStoreInternalError
impl From<JournalConsistencyError> for DynamoDbStoreInternalError
source§fn from(source: JournalConsistencyError) -> Self
fn from(source: JournalConsistencyError) -> Self
source§impl From<SdkError<CreateTableError, Response>> for DynamoDbStoreInternalError
impl From<SdkError<CreateTableError, Response>> for DynamoDbStoreInternalError
source§fn from(source: SdkError<CreateTableError>) -> Self
fn from(source: SdkError<CreateTableError>) -> Self
source§impl KeyValueIterable<DynamoDbStoreInternalError> for DynamoDbKeyValues
impl KeyValueIterable<DynamoDbStoreInternalError> for DynamoDbKeyValues
§type Iterator<'a> = DynamoDbKeyValueIterator<'a>
where
Self: 'a
type Iterator<'a> = DynamoDbKeyValueIterator<'a> where Self: 'a
§type IteratorOwned = DynamoDbKeyValueIteratorOwned
type IteratorOwned = DynamoDbKeyValueIteratorOwned
source§fn into_iterator_owned(self) -> Self::IteratorOwned
fn into_iterator_owned(self) -> Self::IteratorOwned
Auto Trait Implementations§
impl !Freeze for DynamoDbStoreInternalError
impl !RefUnwindSafe for DynamoDbStoreInternalError
impl Send for DynamoDbStoreInternalError
impl Sync for DynamoDbStoreInternalError
impl Unpin for DynamoDbStoreInternalError
impl !UnwindSafe for DynamoDbStoreInternalError
Blanket Implementations§
source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
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
source§impl<Choices> CoproductSubsetter<CNil, HNil> for Choices
impl<Choices> CoproductSubsetter<CNil, HNil> for Choices
source§impl<F, W, T, D> Deserialize<With<T, W>, D> for F
impl<F, W, T, D> Deserialize<With<T, W>, D> for F
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoAnyhow for T
impl<T> IntoAnyhow for T
source§fn into_anyhow(self) -> Error
fn into_anyhow(self) -> Error
self
into an anyhow::Error
.source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
source§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
source§impl<T> MockResults for T
impl<T> MockResults for T
§type Results = T
type Results = T
MockInstance
.source§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<M, I> RuntimeMemory<&mut I> for Mwhere
M: RuntimeMemory<I>,
impl<M, I> RuntimeMemory<&mut I> for Mwhere
M: RuntimeMemory<I>,
source§fn read<'instance>(
&self,
instance: &'instance &mut I,
location: GuestPointer,
length: u32,
) -> Result<Cow<'instance, [u8]>, RuntimeError>
fn read<'instance>( &self, instance: &'instance &mut I, location: GuestPointer, length: u32, ) -> Result<Cow<'instance, [u8]>, RuntimeError>
Reads length
bytes from memory from the provided location
.
source§fn write(
&mut self,
instance: &mut &mut I,
location: GuestPointer,
bytes: &[u8],
) -> Result<(), RuntimeError>
fn write( &mut self, instance: &mut &mut I, location: GuestPointer, bytes: &[u8], ) -> Result<(), RuntimeError>
Writes the bytes
to memory at the provided location
.