Enum aws_sdk_sqs::operation::purge_queue::PurgeQueueError
source · #[non_exhaustive]
pub enum PurgeQueueError {
PurgeQueueInProgress(PurgeQueueInProgress),
QueueDoesNotExist(QueueDoesNotExist),
Unhandled(Unhandled),
}Expand description
Error type for the PurgeQueueError operation.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
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).
QueueDoesNotExist(QueueDoesNotExist)
The specified queue doesn't exist.
Unhandled(Unhandled)
An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
Implementations§
source§impl PurgeQueueError
impl PurgeQueueError
sourcepub fn unhandled(err: impl Into<Box<dyn Error + Send + Sync + 'static>>) -> Self
pub fn unhandled(err: impl Into<Box<dyn Error + Send + Sync + 'static>>) -> Self
Creates the PurgeQueueError::Unhandled variant from any error type.
sourcepub fn generic(err: ErrorMetadata) -> Self
pub fn generic(err: ErrorMetadata) -> Self
Creates the PurgeQueueError::Unhandled variant from a aws_smithy_types::error::ErrorMetadata.
sourcepub fn meta(&self) -> &ErrorMetadata
pub fn meta(&self) -> &ErrorMetadata
Returns error metadata, which includes the error code, message, request ID, and potentially additional information.
sourcepub fn is_purge_queue_in_progress(&self) -> bool
pub fn is_purge_queue_in_progress(&self) -> bool
Returns true if the error kind is PurgeQueueError::PurgeQueueInProgress.
sourcepub fn is_queue_does_not_exist(&self) -> bool
pub fn is_queue_does_not_exist(&self) -> bool
Returns true if the error kind is PurgeQueueError::QueueDoesNotExist.
Trait Implementations§
source§impl CreateUnhandledError for PurgeQueueError
impl CreateUnhandledError for PurgeQueueError
source§fn create_unhandled_error(
source: Box<dyn Error + Send + Sync + 'static>,
meta: Option<ErrorMetadata>
) -> Self
fn create_unhandled_error( source: Box<dyn Error + Send + Sync + 'static>, meta: Option<ErrorMetadata> ) -> Self
source and error metadata.source§impl Debug for PurgeQueueError
impl Debug for PurgeQueueError
source§impl Display for PurgeQueueError
impl Display for PurgeQueueError
source§impl Error for PurgeQueueError
impl Error for PurgeQueueError
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<PurgeQueueError> for Error
impl From<PurgeQueueError> for Error
source§fn from(err: PurgeQueueError) -> Self
fn from(err: PurgeQueueError) -> Self
source§impl ProvideErrorKind for PurgeQueueError
impl ProvideErrorKind for PurgeQueueError
source§impl ProvideErrorMetadata for PurgeQueueError
impl ProvideErrorMetadata for PurgeQueueError
source§fn meta(&self) -> &ErrorMetadata
fn meta(&self) -> &ErrorMetadata
source§impl RequestId for PurgeQueueError
impl RequestId for PurgeQueueError
source§fn request_id(&self) -> Option<&str>
fn request_id(&self) -> Option<&str>
None if the service could not be reached.