#[non_exhaustive]pub enum UntagResourceError {
AccessDenied(AccessDenied),
InvalidArgument(InvalidArgument),
InvalidTagging(InvalidTagging),
NoSuchResource(NoSuchResource),
Unhandled(Unhandled),
}
Expand description
Error type for the UntagResourceError
operation.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
AccessDenied(AccessDenied)
Access denied.
InvalidArgument(InvalidArgument)
An argument is invalid.
InvalidTagging(InvalidTagging)
The tagging specified is not valid.
NoSuchResource(NoSuchResource)
A resource that was specified is not valid.
Unhandled(Unhandled)
Unhandled
directly is not forwards compatible. Instead, match using a variable wildcard pattern and check .code()
:
err if err.code() == Some("SpecificExceptionCode") => { /* handle the error */ }
See ProvideErrorMetadata
for what information is available for the error.An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
Implementations§
source§impl UntagResourceError
impl UntagResourceError
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 UntagResourceError::Unhandled
variant from any error type.
sourcepub fn generic(err: ErrorMetadata) -> Self
pub fn generic(err: ErrorMetadata) -> Self
Creates the UntagResourceError::Unhandled
variant from an 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_access_denied(&self) -> bool
pub fn is_access_denied(&self) -> bool
Returns true
if the error kind is UntagResourceError::AccessDenied
.
sourcepub fn is_invalid_argument(&self) -> bool
pub fn is_invalid_argument(&self) -> bool
Returns true
if the error kind is UntagResourceError::InvalidArgument
.
sourcepub fn is_invalid_tagging(&self) -> bool
pub fn is_invalid_tagging(&self) -> bool
Returns true
if the error kind is UntagResourceError::InvalidTagging
.
sourcepub fn is_no_such_resource(&self) -> bool
pub fn is_no_such_resource(&self) -> bool
Returns true
if the error kind is UntagResourceError::NoSuchResource
.
Trait Implementations§
source§impl CreateUnhandledError for UntagResourceError
impl CreateUnhandledError for UntagResourceError
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 UntagResourceError
impl Debug for UntagResourceError
source§impl Display for UntagResourceError
impl Display for UntagResourceError
source§impl Error for UntagResourceError
impl Error for UntagResourceError
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<UntagResourceError> for Error
impl From<UntagResourceError> for Error
source§fn from(err: UntagResourceError) -> Self
fn from(err: UntagResourceError) -> Self
source§impl ProvideErrorMetadata for UntagResourceError
impl ProvideErrorMetadata for UntagResourceError
source§fn meta(&self) -> &ErrorMetadata
fn meta(&self) -> &ErrorMetadata
source§impl RequestId for UntagResourceError
impl RequestId for UntagResourceError
source§fn request_id(&self) -> Option<&str>
fn request_id(&self) -> Option<&str>
None
if the service could not be reached.