Enum aws_sdk_cognitosync::Error
source · #[non_exhaustive]pub enum Error {
Show 14 variants
AlreadyStreamedException(AlreadyStreamedException),
ConcurrentModificationException(ConcurrentModificationException),
DuplicateRequestException(DuplicateRequestException),
InternalErrorException(InternalErrorException),
InvalidConfigurationException(InvalidConfigurationException),
InvalidLambdaFunctionOutputException(InvalidLambdaFunctionOutputException),
InvalidParameterException(InvalidParameterException),
LambdaThrottledException(LambdaThrottledException),
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
AlreadyStreamedException(AlreadyStreamedException)
An exception thrown when a bulk publish operation is requested less than 24 hours after a previous bulk publish operation completed successfully.
ConcurrentModificationException(ConcurrentModificationException)
Thrown if there are parallel requests to modify a resource.
DuplicateRequestException(DuplicateRequestException)
An exception thrown when there is an IN_PROGRESS bulk publish operation for the given identity pool.
InternalErrorException(InternalErrorException)
Indicates an internal service error.
InvalidConfigurationException(InvalidConfigurationException)
InvalidLambdaFunctionOutputException(InvalidLambdaFunctionOutputException)
The AWS Lambda function returned invalid output or an exception.
InvalidParameterException(InvalidParameterException)
Thrown when a request parameter does not comply with the associated constraints.
LambdaThrottledException(LambdaThrottledException)
AWS Lambda throttled your account, please contact AWS Support
LimitExceededException(LimitExceededException)
Thrown when the limit on the number of objects or operations has been exceeded.
NotAuthorizedException(NotAuthorizedException)
Thrown when a user is not authorized to access the requested resource.
ResourceConflictException(ResourceConflictException)
Thrown if an update can’t be applied because the resource was changed by another call and this would result in a conflict.
ResourceNotFoundException(ResourceNotFoundException)
Thrown if the resource doesn’t exist.
TooManyRequestsException(TooManyRequestsException)
Thrown if the 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).