Enum aws_sdk_mobile::Error
source · #[non_exhaustive]pub enum Error {
AccountActionRequiredException(AccountActionRequiredException),
BadRequestException(BadRequestException),
InternalFailureException(InternalFailureException),
LimitExceededException(LimitExceededException),
NotFoundException(NotFoundException),
ServiceUnavailableException(ServiceUnavailableException),
TooManyRequestsException(TooManyRequestsException),
UnauthorizedException(UnauthorizedException),
Unhandled(Unhandled),
}
Expand description
All possible error types for this service.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
AccountActionRequiredException(AccountActionRequiredException)
Account Action is required in order to continue the request.
BadRequestException(BadRequestException)
The request cannot be processed because some parameter is not valid or the project state prevents the operation from being performed.
InternalFailureException(InternalFailureException)
The service has encountered an unexpected error condition which prevents it from servicing the request.
LimitExceededException(LimitExceededException)
There are too many AWS Mobile Hub projects in the account or the account has exceeded the maximum number of resources in some AWS service. You should create another sub-account using AWS Organizations or remove some resources and retry your request.
NotFoundException(NotFoundException)
No entity can be found with the specified identifier.
The service is temporarily unavailable. The request should be retried after some time delay.
TooManyRequestsException(TooManyRequestsException)
Too many requests have been received for this AWS account in too short a time. The request should be retried after some time delay.
Credentials of the caller are insufficient to authorize the request.
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).