Enum aws_sdk_cognitoidentity::Error
source · #[non_exhaustive]pub enum Error {
ConcurrentModificationException(ConcurrentModificationException),
DeveloperUserAlreadyRegisteredException(DeveloperUserAlreadyRegisteredException),
ExternalServiceException(ExternalServiceException),
InternalErrorException(InternalErrorException),
InvalidIdentityPoolConfigurationException(InvalidIdentityPoolConfigurationException),
InvalidParameterException(InvalidParameterException),
LimitExceededException(LimitExceededException),
NotAuthorizedException(NotAuthorizedException),
ResourceConflictException(ResourceConflictException),
ResourceNotFoundException(ResourceNotFoundException),
TooManyRequestsException(TooManyRequestsException),
Unhandled(Unhandled),
}
Expand description
All possible error types for this service.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
ConcurrentModificationException(ConcurrentModificationException)
Thrown if there are parallel requests to modify a resource.
DeveloperUserAlreadyRegisteredException(DeveloperUserAlreadyRegisteredException)
The provided developer user identifier is already registered with Cognito under a different identity ID.
ExternalServiceException(ExternalServiceException)
An exception thrown when a dependent service such as Facebook or Twitter is not responding
InternalErrorException(InternalErrorException)
Thrown when the service encounters an error during processing the request.
InvalidIdentityPoolConfigurationException(InvalidIdentityPoolConfigurationException)
Thrown if the identity pool has no role associated for the given auth type (auth/unauth) or if the AssumeRole fails.
InvalidParameterException(InvalidParameterException)
Thrown for missing or bad input parameter(s).
LimitExceededException(LimitExceededException)
Thrown when the total number of user pools has exceeded a preset limit.
NotAuthorizedException(NotAuthorizedException)
Thrown when a user is not authorized to access the requested resource.
ResourceConflictException(ResourceConflictException)
Thrown when a user tries to use a login which is already linked to another account.
ResourceNotFoundException(ResourceNotFoundException)
Thrown when the requested resource (for example, a dataset or record) does not exist.
TooManyRequestsException(TooManyRequestsException)
Thrown when a request is throttled.
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<CreateIdentityPoolError> for Error
impl From<CreateIdentityPoolError> for Error
source§fn from(err: CreateIdentityPoolError) -> Self
fn from(err: CreateIdentityPoolError) -> Self
source§impl From<DeleteIdentitiesError> for Error
impl From<DeleteIdentitiesError> for Error
source§fn from(err: DeleteIdentitiesError) -> Self
fn from(err: DeleteIdentitiesError) -> Self
source§impl From<DeleteIdentityPoolError> for Error
impl From<DeleteIdentityPoolError> for Error
source§fn from(err: DeleteIdentityPoolError) -> Self
fn from(err: DeleteIdentityPoolError) -> Self
source§impl From<DescribeIdentityError> for Error
impl From<DescribeIdentityError> for Error
source§fn from(err: DescribeIdentityError) -> Self
fn from(err: DescribeIdentityError) -> Self
source§impl From<DescribeIdentityPoolError> for Error
impl From<DescribeIdentityPoolError> for Error
source§fn from(err: DescribeIdentityPoolError) -> Self
fn from(err: DescribeIdentityPoolError) -> Self
source§impl From<GetCredentialsForIdentityError> for Error
impl From<GetCredentialsForIdentityError> for Error
source§fn from(err: GetCredentialsForIdentityError) -> Self
fn from(err: GetCredentialsForIdentityError) -> Self
source§impl From<GetIdError> for Error
impl From<GetIdError> for Error
source§fn from(err: GetIdError) -> Self
fn from(err: GetIdError) -> Self
source§impl From<GetIdentityPoolRolesError> for Error
impl From<GetIdentityPoolRolesError> for Error
source§fn from(err: GetIdentityPoolRolesError) -> Self
fn from(err: GetIdentityPoolRolesError) -> Self
source§impl From<GetOpenIdTokenError> for Error
impl From<GetOpenIdTokenError> for Error
source§fn from(err: GetOpenIdTokenError) -> Self
fn from(err: GetOpenIdTokenError) -> Self
source§impl From<GetOpenIdTokenForDeveloperIdentityError> for Error
impl From<GetOpenIdTokenForDeveloperIdentityError> for Error
source§fn from(err: GetOpenIdTokenForDeveloperIdentityError) -> Self
fn from(err: GetOpenIdTokenForDeveloperIdentityError) -> Self
source§impl From<GetPrincipalTagAttributeMapError> for Error
impl From<GetPrincipalTagAttributeMapError> for Error
source§fn from(err: GetPrincipalTagAttributeMapError) -> Self
fn from(err: GetPrincipalTagAttributeMapError) -> Self
source§impl From<ListIdentitiesError> for Error
impl From<ListIdentitiesError> for Error
source§fn from(err: ListIdentitiesError) -> Self
fn from(err: ListIdentitiesError) -> Self
source§impl From<ListIdentityPoolsError> for Error
impl From<ListIdentityPoolsError> for Error
source§fn from(err: ListIdentityPoolsError) -> Self
fn from(err: ListIdentityPoolsError) -> Self
source§impl From<ListTagsForResourceError> for Error
impl From<ListTagsForResourceError> for Error
source§fn from(err: ListTagsForResourceError) -> Self
fn from(err: ListTagsForResourceError) -> Self
source§impl From<LookupDeveloperIdentityError> for Error
impl From<LookupDeveloperIdentityError> for Error
source§fn from(err: LookupDeveloperIdentityError) -> Self
fn from(err: LookupDeveloperIdentityError) -> Self
source§impl From<MergeDeveloperIdentitiesError> for Error
impl From<MergeDeveloperIdentitiesError> for Error
source§fn from(err: MergeDeveloperIdentitiesError) -> Self
fn from(err: MergeDeveloperIdentitiesError) -> Self
source§impl<R> From<SdkError<CreateIdentityPoolError, R>> for Error
impl<R> From<SdkError<CreateIdentityPoolError, R>> for Error
source§fn from(err: SdkError<CreateIdentityPoolError, R>) -> Self
fn from(err: SdkError<CreateIdentityPoolError, R>) -> Self
source§impl<R> From<SdkError<DeleteIdentitiesError, R>> for Error
impl<R> From<SdkError<DeleteIdentitiesError, R>> for Error
source§fn from(err: SdkError<DeleteIdentitiesError, R>) -> Self
fn from(err: SdkError<DeleteIdentitiesError, R>) -> Self
source§impl<R> From<SdkError<DeleteIdentityPoolError, R>> for Error
impl<R> From<SdkError<DeleteIdentityPoolError, R>> for Error
source§fn from(err: SdkError<DeleteIdentityPoolError, R>) -> Self
fn from(err: SdkError<DeleteIdentityPoolError, R>) -> Self
source§impl<R> From<SdkError<DescribeIdentityError, R>> for Error
impl<R> From<SdkError<DescribeIdentityError, R>> for Error
source§fn from(err: SdkError<DescribeIdentityError, R>) -> Self
fn from(err: SdkError<DescribeIdentityError, R>) -> Self
source§impl<R> From<SdkError<DescribeIdentityPoolError, R>> for Error
impl<R> From<SdkError<DescribeIdentityPoolError, R>> for Error
source§fn from(err: SdkError<DescribeIdentityPoolError, R>) -> Self
fn from(err: SdkError<DescribeIdentityPoolError, R>) -> Self
source§impl<R> From<SdkError<GetCredentialsForIdentityError, R>> for Error
impl<R> From<SdkError<GetCredentialsForIdentityError, R>> for Error
source§fn from(err: SdkError<GetCredentialsForIdentityError, R>) -> Self
fn from(err: SdkError<GetCredentialsForIdentityError, R>) -> Self
source§impl<R> From<SdkError<GetIdError, R>> for Error
impl<R> From<SdkError<GetIdError, R>> for Error
source§fn from(err: SdkError<GetIdError, R>) -> Self
fn from(err: SdkError<GetIdError, R>) -> Self
source§impl<R> From<SdkError<GetIdentityPoolRolesError, R>> for Error
impl<R> From<SdkError<GetIdentityPoolRolesError, R>> for Error
source§fn from(err: SdkError<GetIdentityPoolRolesError, R>) -> Self
fn from(err: SdkError<GetIdentityPoolRolesError, R>) -> Self
source§impl<R> From<SdkError<GetOpenIdTokenError, R>> for Error
impl<R> From<SdkError<GetOpenIdTokenError, R>> for Error
source§fn from(err: SdkError<GetOpenIdTokenError, R>) -> Self
fn from(err: SdkError<GetOpenIdTokenError, R>) -> Self
source§impl<R> From<SdkError<GetOpenIdTokenForDeveloperIdentityError, R>> for Error
impl<R> From<SdkError<GetOpenIdTokenForDeveloperIdentityError, R>> for Error
source§fn from(err: SdkError<GetOpenIdTokenForDeveloperIdentityError, R>) -> Self
fn from(err: SdkError<GetOpenIdTokenForDeveloperIdentityError, R>) -> Self
source§impl<R> From<SdkError<GetPrincipalTagAttributeMapError, R>> for Error
impl<R> From<SdkError<GetPrincipalTagAttributeMapError, R>> for Error
source§fn from(err: SdkError<GetPrincipalTagAttributeMapError, R>) -> Self
fn from(err: SdkError<GetPrincipalTagAttributeMapError, R>) -> Self
source§impl<R> From<SdkError<ListIdentitiesError, R>> for Error
impl<R> From<SdkError<ListIdentitiesError, R>> for Error
source§fn from(err: SdkError<ListIdentitiesError, R>) -> Self
fn from(err: SdkError<ListIdentitiesError, R>) -> Self
source§impl<R> From<SdkError<ListIdentityPoolsError, R>> for Error
impl<R> From<SdkError<ListIdentityPoolsError, R>> for Error
source§fn from(err: SdkError<ListIdentityPoolsError, R>) -> Self
fn from(err: SdkError<ListIdentityPoolsError, R>) -> Self
source§impl<R> From<SdkError<ListTagsForResourceError, R>> for Error
impl<R> From<SdkError<ListTagsForResourceError, R>> for Error
source§fn from(err: SdkError<ListTagsForResourceError, R>) -> Self
fn from(err: SdkError<ListTagsForResourceError, R>) -> Self
source§impl<R> From<SdkError<LookupDeveloperIdentityError, R>> for Error
impl<R> From<SdkError<LookupDeveloperIdentityError, R>> for Error
source§fn from(err: SdkError<LookupDeveloperIdentityError, R>) -> Self
fn from(err: SdkError<LookupDeveloperIdentityError, R>) -> Self
source§impl<R> From<SdkError<MergeDeveloperIdentitiesError, R>> for Error
impl<R> From<SdkError<MergeDeveloperIdentitiesError, R>> for Error
source§fn from(err: SdkError<MergeDeveloperIdentitiesError, R>) -> Self
fn from(err: SdkError<MergeDeveloperIdentitiesError, R>) -> Self
source§impl<R> From<SdkError<SetIdentityPoolRolesError, R>> for Error
impl<R> From<SdkError<SetIdentityPoolRolesError, R>> for Error
source§fn from(err: SdkError<SetIdentityPoolRolesError, R>) -> Self
fn from(err: SdkError<SetIdentityPoolRolesError, R>) -> Self
source§impl<R> From<SdkError<SetPrincipalTagAttributeMapError, R>> for Error
impl<R> From<SdkError<SetPrincipalTagAttributeMapError, R>> for Error
source§fn from(err: SdkError<SetPrincipalTagAttributeMapError, R>) -> Self
fn from(err: SdkError<SetPrincipalTagAttributeMapError, R>) -> Self
source§impl<R> From<SdkError<TagResourceError, R>> for Error
impl<R> From<SdkError<TagResourceError, R>> for Error
source§fn from(err: SdkError<TagResourceError, R>) -> Self
fn from(err: SdkError<TagResourceError, R>) -> Self
source§impl<R> From<SdkError<UnlinkDeveloperIdentityError, R>> for Error
impl<R> From<SdkError<UnlinkDeveloperIdentityError, R>> for Error
source§fn from(err: SdkError<UnlinkDeveloperIdentityError, R>) -> Self
fn from(err: SdkError<UnlinkDeveloperIdentityError, R>) -> Self
source§impl<R> From<SdkError<UnlinkIdentityError, R>> for Error
impl<R> From<SdkError<UnlinkIdentityError, R>> for Error
source§fn from(err: SdkError<UnlinkIdentityError, R>) -> Self
fn from(err: SdkError<UnlinkIdentityError, R>) -> Self
source§impl<R> From<SdkError<UntagResourceError, R>> for Error
impl<R> From<SdkError<UntagResourceError, R>> for Error
source§fn from(err: SdkError<UntagResourceError, R>) -> Self
fn from(err: SdkError<UntagResourceError, R>) -> Self
source§impl<R> From<SdkError<UpdateIdentityPoolError, R>> for Error
impl<R> From<SdkError<UpdateIdentityPoolError, R>> for Error
source§fn from(err: SdkError<UpdateIdentityPoolError, R>) -> Self
fn from(err: SdkError<UpdateIdentityPoolError, R>) -> Self
source§impl From<SetIdentityPoolRolesError> for Error
impl From<SetIdentityPoolRolesError> for Error
source§fn from(err: SetIdentityPoolRolesError) -> Self
fn from(err: SetIdentityPoolRolesError) -> Self
source§impl From<SetPrincipalTagAttributeMapError> for Error
impl From<SetPrincipalTagAttributeMapError> for Error
source§fn from(err: SetPrincipalTagAttributeMapError) -> Self
fn from(err: SetPrincipalTagAttributeMapError) -> Self
source§impl From<TagResourceError> for Error
impl From<TagResourceError> for Error
source§fn from(err: TagResourceError) -> Self
fn from(err: TagResourceError) -> Self
source§impl From<UnlinkDeveloperIdentityError> for Error
impl From<UnlinkDeveloperIdentityError> for Error
source§fn from(err: UnlinkDeveloperIdentityError) -> Self
fn from(err: UnlinkDeveloperIdentityError) -> Self
source§impl From<UnlinkIdentityError> for Error
impl From<UnlinkIdentityError> for Error
source§fn from(err: UnlinkIdentityError) -> Self
fn from(err: UnlinkIdentityError) -> Self
source§impl From<UntagResourceError> for Error
impl From<UntagResourceError> for Error
source§fn from(err: UntagResourceError) -> Self
fn from(err: UntagResourceError) -> Self
source§impl From<UpdateIdentityPoolError> for Error
impl From<UpdateIdentityPoolError> for Error
source§fn from(err: UpdateIdentityPoolError) -> Self
fn from(err: UpdateIdentityPoolError) -> 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