#[non_exhaustive]pub enum Error {
Show 18 variants
AccessDeniedException(AccessDeniedException),
ConcurrentModificationException(ConcurrentModificationException),
ConditionalCheckFailedException(ConditionalCheckFailedException),
ConflictException(ConflictException),
InternalServerException(InternalServerException),
InvalidInputException(InvalidInputException),
LimitExceededException(LimitExceededException),
ResourceAlreadyExistsException(ResourceAlreadyExistsException),
ResourceNotFoundException(ResourceNotFoundException),
ResourceUnavailableException(ResourceUnavailableException),
RetryLatestCommitFailedException(RetryLatestCommitFailedException),
SyncBlockerDoesNotExistException(SyncBlockerDoesNotExistException),
SyncConfigurationStillExistsException(SyncConfigurationStillExistsException),
ThrottlingException(ThrottlingException),
UnsupportedOperationException(UnsupportedOperationException),
UnsupportedProviderTypeException(UnsupportedProviderTypeException),
UpdateOutOfSyncException(UpdateOutOfSyncException),
Unhandled(Unhandled),
}
Expand description
All possible error types for this service.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
AccessDeniedException(AccessDeniedException)
You do not have sufficient access to perform this action.
ConcurrentModificationException(ConcurrentModificationException)
Exception thrown as a result of concurrent modification to an application. For example, two individuals attempting to edit the same application at the same time.
ConditionalCheckFailedException(ConditionalCheckFailedException)
The conditional check failed. Try again later.
ConflictException(ConflictException)
Two conflicting operations have been made on the same resource.
InternalServerException(InternalServerException)
Received an internal server exception. Try again later.
InvalidInputException(InvalidInputException)
The input is not valid. Verify that the action is typed correctly.
LimitExceededException(LimitExceededException)
Exceeded the maximum limit for connections.
ResourceAlreadyExistsException(ResourceAlreadyExistsException)
Unable to create resource. Resource already exists.
ResourceNotFoundException(ResourceNotFoundException)
Resource not found. Verify the connection resource ARN and try again.
Resource not found. Verify the ARN for the host resource and try again.
RetryLatestCommitFailedException(RetryLatestCommitFailedException)
Retrying the latest commit failed. Try again later.
SyncBlockerDoesNotExistException(SyncBlockerDoesNotExistException)
Unable to continue. The sync blocker does not exist.
SyncConfigurationStillExistsException(SyncConfigurationStillExistsException)
Unable to continue. The sync blocker still exists.
ThrottlingException(ThrottlingException)
The request was denied due to request throttling.
UnsupportedOperationException(UnsupportedOperationException)
The operation is not supported. Check the connection status and try again.
UnsupportedProviderTypeException(UnsupportedProviderTypeException)
The specified provider type is not supported for connections.
UpdateOutOfSyncException(UpdateOutOfSyncException)
The update is out of sync. Try syncing again.
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).