Enum aws_sdk_sqs::Error
source · #[non_exhaustive]
pub enum Error {
Show 17 variants
BatchEntryIdsNotDistinct(BatchEntryIdsNotDistinct),
BatchRequestTooLong(BatchRequestTooLong),
EmptyBatchRequest(EmptyBatchRequest),
InvalidAttributeName(InvalidAttributeName),
InvalidBatchEntryId(InvalidBatchEntryId),
InvalidIdFormat(InvalidIdFormat),
InvalidMessageContents(InvalidMessageContents),
MessageNotInflight(MessageNotInflight),
OverLimit(OverLimit),
PurgeQueueInProgress(PurgeQueueInProgress),
QueueDeletedRecently(QueueDeletedRecently),
QueueDoesNotExist(QueueDoesNotExist),
QueueNameExists(QueueNameExists),
ReceiptHandleIsInvalid(ReceiptHandleIsInvalid),
TooManyEntriesInBatchRequest(TooManyEntriesInBatchRequest),
UnsupportedOperation(UnsupportedOperation),
Unhandled(Unhandled),
}
Expand description
All possible error types for this service.
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.
InvalidAttributeName(InvalidAttributeName)
The specified attribute doesn't exist.
InvalidBatchEntryId(InvalidBatchEntryId)
The Id
of a batch entry in a batch request doesn't abide by the specification.
InvalidIdFormat(InvalidIdFormat)
The specified receipt handle isn't valid for the current version.
InvalidMessageContents(InvalidMessageContents)
The message contains characters outside the allowed set.
MessageNotInflight(MessageNotInflight)
The specified message isn't in flight.
OverLimit(OverLimit)
The specified action violates a limit. For example, ReceiveMessage
returns this error if the maximum number of inflight messages is reached and AddPermission
returns this error if the maximum number of permissions for the queue is reached.
PurgeQueueInProgress(PurgeQueueInProgress)
Indicates that the specified queue previously received a PurgeQueue
request within the last 60 seconds (the time it can take to delete the messages in the queue).
QueueDeletedRecently(QueueDeletedRecently)
You must wait 60 seconds after deleting a queue before you can create another queue with the same name.
QueueDoesNotExist(QueueDoesNotExist)
The specified queue doesn't exist.
QueueNameExists(QueueNameExists)
A queue with this name already exists. Amazon SQS returns this error only if the request includes attributes whose values differ from those of the existing queue.
ReceiptHandleIsInvalid(ReceiptHandleIsInvalid)
The specified receipt handle isn't valid.
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.