#[non_exhaustive]
pub enum SendMessageBatchErrorKind {
BatchEntryIdsNotDistinct(BatchEntryIdsNotDistinct),
BatchRequestTooLong(BatchRequestTooLong),
EmptyBatchRequest(EmptyBatchRequest),
InvalidBatchEntryId(InvalidBatchEntryId),
TooManyEntriesInBatchRequest(TooManyEntriesInBatchRequest),
UnsupportedOperation(UnsupportedOperation),
Unhandled(Unhandled),
}
Expand description
Types of errors that can occur for the SendMessageBatch
operation.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
BatchEntryIdsNotDistinct(BatchEntryIdsNotDistinct)
Two or more batch entries in the request have the same Id
.
BatchRequestTooLong(BatchRequestTooLong)
The length of all the messages put together is more than the limit.
EmptyBatchRequest(EmptyBatchRequest)
The batch request doesn't contain any entries.
InvalidBatchEntryId(InvalidBatchEntryId)
The Id
of a batch entry in a batch request doesn't abide by the specification.
TooManyEntriesInBatchRequest(TooManyEntriesInBatchRequest)
The batch request contains more entries than permissible.
UnsupportedOperation(UnsupportedOperation)
Error code 400. Unsupported operation.
Unhandled(Unhandled)
An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
When logging an error from the SDK, it is recommended that you either wrap the error in
DisplayErrorContext
, use another
error reporter library that visits the error’s cause/source chain, or call
Error::source
for more details about the underlying cause.