#[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(Box<dyn Error + Send + Sync + 'static>),
}
Expand description

All possible error types for this service.

Variants (Non-exhaustive)

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.

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(Box<dyn Error + Send + Sync + 'static>)

An unhandled error occurred.

Trait Implementations

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

The lower-level source of this error, if any. Read more

🔬 This is a nightly-only experimental API. (backtrace)

Returns a stack backtrace, if available, of where this error occurred. Read more

👎 Deprecated since 1.42.0:

use the Display impl or to_string()

👎 Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more