Enum aws_sdk_iam::operation::list_service_specific_credentials::ListServiceSpecificCredentialsError
source · #[non_exhaustive]pub enum ListServiceSpecificCredentialsError {
NoSuchEntityException(NoSuchEntityException),
ServiceNotSupportedException(ServiceNotSupportedException),
Unhandled(Unhandled),
}
Expand description
Error type for the ListServiceSpecificCredentialsError
operation.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
NoSuchEntityException(NoSuchEntityException)
The request was rejected because it referenced a resource entity that does not exist. The error message describes the resource.
ServiceNotSupportedException(ServiceNotSupportedException)
The specified service does not support service-specific credentials.
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 ListServiceSpecificCredentialsError
impl ListServiceSpecificCredentialsError
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 ListServiceSpecificCredentialsError::Unhandled
variant from any error type.
sourcepub fn generic(err: ErrorMetadata) -> Self
pub fn generic(err: ErrorMetadata) -> Self
Creates the ListServiceSpecificCredentialsError::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_no_such_entity_exception(&self) -> bool
pub fn is_no_such_entity_exception(&self) -> bool
Returns true
if the error kind is ListServiceSpecificCredentialsError::NoSuchEntityException
.
sourcepub fn is_service_not_supported_exception(&self) -> bool
pub fn is_service_not_supported_exception(&self) -> bool
Returns true
if the error kind is ListServiceSpecificCredentialsError::ServiceNotSupportedException
.
Trait Implementations§
source§impl CreateUnhandledError for ListServiceSpecificCredentialsError
impl CreateUnhandledError for ListServiceSpecificCredentialsError
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 Error for ListServiceSpecificCredentialsError
impl Error for ListServiceSpecificCredentialsError
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<ListServiceSpecificCredentialsError> for Error
impl From<ListServiceSpecificCredentialsError> for Error
source§fn from(err: ListServiceSpecificCredentialsError) -> Self
fn from(err: ListServiceSpecificCredentialsError) -> Self
source§impl ProvideErrorMetadata for ListServiceSpecificCredentialsError
impl ProvideErrorMetadata for ListServiceSpecificCredentialsError
source§fn meta(&self) -> &ErrorMetadata
fn meta(&self) -> &ErrorMetadata
source§impl RequestId for ListServiceSpecificCredentialsError
impl RequestId for ListServiceSpecificCredentialsError
source§fn request_id(&self) -> Option<&str>
fn request_id(&self) -> Option<&str>
None
if the service could not be reached.