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).
Trait Implementations§
source§impl Error for Error
impl Error for Error
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<BuildError> for Error
impl From<BuildError> for Error
source§fn from(value: BuildError) -> Self
fn from(value: BuildError) -> Self
source§impl From<CreateProjectError> for Error
impl From<CreateProjectError> for Error
source§fn from(err: CreateProjectError) -> Self
fn from(err: CreateProjectError) -> Self
source§impl From<DeleteProjectError> for Error
impl From<DeleteProjectError> for Error
source§fn from(err: DeleteProjectError) -> Self
fn from(err: DeleteProjectError) -> Self
source§impl From<DescribeBundleError> for Error
impl From<DescribeBundleError> for Error
source§fn from(err: DescribeBundleError) -> Self
fn from(err: DescribeBundleError) -> Self
source§impl From<DescribeProjectError> for Error
impl From<DescribeProjectError> for Error
source§fn from(err: DescribeProjectError) -> Self
fn from(err: DescribeProjectError) -> Self
source§impl From<ExportBundleError> for Error
impl From<ExportBundleError> for Error
source§fn from(err: ExportBundleError) -> Self
fn from(err: ExportBundleError) -> Self
source§impl From<ExportProjectError> for Error
impl From<ExportProjectError> for Error
source§fn from(err: ExportProjectError) -> Self
fn from(err: ExportProjectError) -> Self
source§impl From<ListBundlesError> for Error
impl From<ListBundlesError> for Error
source§fn from(err: ListBundlesError) -> Self
fn from(err: ListBundlesError) -> Self
source§impl From<ListProjectsError> for Error
impl From<ListProjectsError> for Error
source§fn from(err: ListProjectsError) -> Self
fn from(err: ListProjectsError) -> Self
source§impl<R> From<SdkError<CreateProjectError, R>> for Error
impl<R> From<SdkError<CreateProjectError, R>> for Error
source§fn from(err: SdkError<CreateProjectError, R>) -> Self
fn from(err: SdkError<CreateProjectError, R>) -> Self
source§impl<R> From<SdkError<DeleteProjectError, R>> for Error
impl<R> From<SdkError<DeleteProjectError, R>> for Error
source§fn from(err: SdkError<DeleteProjectError, R>) -> Self
fn from(err: SdkError<DeleteProjectError, R>) -> Self
source§impl<R> From<SdkError<DescribeBundleError, R>> for Error
impl<R> From<SdkError<DescribeBundleError, R>> for Error
source§fn from(err: SdkError<DescribeBundleError, R>) -> Self
fn from(err: SdkError<DescribeBundleError, R>) -> Self
source§impl<R> From<SdkError<DescribeProjectError, R>> for Error
impl<R> From<SdkError<DescribeProjectError, R>> for Error
source§fn from(err: SdkError<DescribeProjectError, R>) -> Self
fn from(err: SdkError<DescribeProjectError, R>) -> Self
source§impl<R> From<SdkError<ExportBundleError, R>> for Error
impl<R> From<SdkError<ExportBundleError, R>> for Error
source§fn from(err: SdkError<ExportBundleError, R>) -> Self
fn from(err: SdkError<ExportBundleError, R>) -> Self
source§impl<R> From<SdkError<ExportProjectError, R>> for Error
impl<R> From<SdkError<ExportProjectError, R>> for Error
source§fn from(err: SdkError<ExportProjectError, R>) -> Self
fn from(err: SdkError<ExportProjectError, R>) -> Self
source§impl<R> From<SdkError<ListBundlesError, R>> for Error
impl<R> From<SdkError<ListBundlesError, R>> for Error
source§fn from(err: SdkError<ListBundlesError, R>) -> Self
fn from(err: SdkError<ListBundlesError, R>) -> Self
source§impl<R> From<SdkError<ListProjectsError, R>> for Error
impl<R> From<SdkError<ListProjectsError, R>> for Error
source§fn from(err: SdkError<ListProjectsError, R>) -> Self
fn from(err: SdkError<ListProjectsError, R>) -> Self
source§impl<R> From<SdkError<UpdateProjectError, R>> for Error
impl<R> From<SdkError<UpdateProjectError, R>> for Error
source§fn from(err: SdkError<UpdateProjectError, R>) -> Self
fn from(err: SdkError<UpdateProjectError, R>) -> Self
source§impl From<UpdateProjectError> for Error
impl From<UpdateProjectError> for Error
source§fn from(err: UpdateProjectError) -> Self
fn from(err: UpdateProjectError) -> Self
source§impl ProvideErrorMetadata for Error
impl ProvideErrorMetadata for Error
source§fn meta(&self) -> &ErrorMetadata
fn meta(&self) -> &ErrorMetadata
Auto Trait Implementations§
impl Freeze for Error
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more