Enum aws_sdk_ses::Error
source · #[non_exhaustive]pub enum Error {
Show 35 variants
AccountSendingPausedException(AccountSendingPausedException),
AlreadyExistsException(AlreadyExistsException),
CannotDeleteException(CannotDeleteException),
ConfigurationSetAlreadyExistsException(ConfigurationSetAlreadyExistsException),
ConfigurationSetDoesNotExistException(ConfigurationSetDoesNotExistException),
ConfigurationSetSendingPausedException(ConfigurationSetSendingPausedException),
CustomVerificationEmailInvalidContentException(CustomVerificationEmailInvalidContentException),
CustomVerificationEmailTemplateAlreadyExistsException(CustomVerificationEmailTemplateAlreadyExistsException),
CustomVerificationEmailTemplateDoesNotExistException(CustomVerificationEmailTemplateDoesNotExistException),
EventDestinationAlreadyExistsException(EventDestinationAlreadyExistsException),
EventDestinationDoesNotExistException(EventDestinationDoesNotExistException),
FromEmailAddressNotVerifiedException(FromEmailAddressNotVerifiedException),
InvalidCloudWatchDestinationException(InvalidCloudWatchDestinationException),
InvalidConfigurationSetException(InvalidConfigurationSetException),
InvalidDeliveryOptionsException(InvalidDeliveryOptionsException),
InvalidFirehoseDestinationException(InvalidFirehoseDestinationException),
InvalidLambdaFunctionException(InvalidLambdaFunctionException),
InvalidPolicyException(InvalidPolicyException),
InvalidRenderingParameterException(InvalidRenderingParameterException),
InvalidS3ConfigurationException(InvalidS3ConfigurationException),
InvalidSnsDestinationException(InvalidSnsDestinationException),
InvalidSnsTopicException(InvalidSnsTopicException),
InvalidTemplateException(InvalidTemplateException),
InvalidTrackingOptionsException(InvalidTrackingOptionsException),
LimitExceededException(LimitExceededException),
MailFromDomainNotVerifiedException(MailFromDomainNotVerifiedException),
MessageRejected(MessageRejected),
MissingRenderingAttributeException(MissingRenderingAttributeException),
ProductionAccessNotGrantedException(ProductionAccessNotGrantedException),
RuleDoesNotExistException(RuleDoesNotExistException),
RuleSetDoesNotExistException(RuleSetDoesNotExistException),
TemplateDoesNotExistException(TemplateDoesNotExistException),
TrackingOptionsAlreadyExistsException(TrackingOptionsAlreadyExistsException),
TrackingOptionsDoesNotExistException(TrackingOptionsDoesNotExistException),
Unhandled(Unhandled),
}
Expand description
All possible error types for this service.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
AccountSendingPausedException(AccountSendingPausedException)
Indicates that email sending is disabled for your entire Amazon SES account.
You can enable or disable email sending for your Amazon SES account using UpdateAccountSendingEnabled
.
AlreadyExistsException(AlreadyExistsException)
Indicates that a resource could not be created because of a naming conflict.
CannotDeleteException(CannotDeleteException)
Indicates that the delete operation could not be completed.
ConfigurationSetAlreadyExistsException(ConfigurationSetAlreadyExistsException)
Indicates that the configuration set could not be created because of a naming conflict.
ConfigurationSetDoesNotExistException(ConfigurationSetDoesNotExistException)
Indicates that the configuration set does not exist.
ConfigurationSetSendingPausedException(ConfigurationSetSendingPausedException)
Indicates that email sending is disabled for the configuration set.
You can enable or disable email sending for a configuration set using UpdateConfigurationSetSendingEnabled
.
CustomVerificationEmailInvalidContentException(CustomVerificationEmailInvalidContentException)
Indicates that custom verification email template provided content is invalid.
CustomVerificationEmailTemplateAlreadyExistsException(CustomVerificationEmailTemplateAlreadyExistsException)
Indicates that a custom verification email template with the name you specified already exists.
CustomVerificationEmailTemplateDoesNotExistException(CustomVerificationEmailTemplateDoesNotExistException)
Indicates that a custom verification email template with the name you specified does not exist.
EventDestinationAlreadyExistsException(EventDestinationAlreadyExistsException)
Indicates that the event destination could not be created because of a naming conflict.
EventDestinationDoesNotExistException(EventDestinationDoesNotExistException)
Indicates that the event destination does not exist.
FromEmailAddressNotVerifiedException(FromEmailAddressNotVerifiedException)
Indicates that the sender address specified for a custom verification email is not verified, and is therefore not eligible to send the custom verification email.
InvalidCloudWatchDestinationException(InvalidCloudWatchDestinationException)
Indicates that the Amazon CloudWatch destination is invalid. See the error message for details.
InvalidConfigurationSetException(InvalidConfigurationSetException)
Indicates that the configuration set is invalid. See the error message for details.
InvalidDeliveryOptionsException(InvalidDeliveryOptionsException)
Indicates that provided delivery option is invalid.
InvalidFirehoseDestinationException(InvalidFirehoseDestinationException)
Indicates that the Amazon Kinesis Firehose destination is invalid. See the error message for details.
InvalidLambdaFunctionException(InvalidLambdaFunctionException)
Indicates that the provided Amazon Web Services Lambda function is invalid, or that Amazon SES could not execute the provided function, possibly due to permissions issues. For information about giving permissions, see the Amazon SES Developer Guide.
InvalidPolicyException(InvalidPolicyException)
Indicates that the provided policy is invalid. Check the error stack for more information about what caused the error.
InvalidRenderingParameterException(InvalidRenderingParameterException)
Indicates that one or more of the replacement values you provided is invalid. This error may occur when the TemplateData object contains invalid JSON.
InvalidS3ConfigurationException(InvalidS3ConfigurationException)
Indicates that the provided Amazon S3 bucket or Amazon Web Services KMS encryption key is invalid, or that Amazon SES could not publish to the bucket, possibly due to permissions issues. For information about giving permissions, see the Amazon SES Developer Guide.
InvalidSnsDestinationException(InvalidSnsDestinationException)
Indicates that the Amazon Simple Notification Service (Amazon SNS) destination is invalid. See the error message for details.
InvalidSnsTopicException(InvalidSnsTopicException)
Indicates that the provided Amazon SNS topic is invalid, or that Amazon SES could not publish to the topic, possibly due to permissions issues. For information about giving permissions, see the Amazon SES Developer Guide.
InvalidTemplateException(InvalidTemplateException)
Indicates that the template that you specified could not be rendered. This issue may occur when a template refers to a partial that does not exist.
InvalidTrackingOptionsException(InvalidTrackingOptionsException)
Indicates that the custom domain to be used for open and click tracking redirects is invalid. This error appears most often in the following situations:
-
When the tracking domain you specified is not verified in Amazon SES.
-
When the tracking domain you specified is not a valid domain or subdomain.
LimitExceededException(LimitExceededException)
Indicates that a resource could not be created because of service limits. For a list of Amazon SES limits, see the Amazon SES Developer Guide.
MailFromDomainNotVerifiedException(MailFromDomainNotVerifiedException)
Indicates that the message could not be sent because Amazon SES could not read the MX record required to use the specified MAIL FROM domain. For information about editing the custom MAIL FROM domain settings for an identity, see the Amazon SES Developer Guide.
MessageRejected(MessageRejected)
Indicates that the action failed, and the message could not be sent. Check the error stack for more information about what caused the error.
MissingRenderingAttributeException(MissingRenderingAttributeException)
Indicates that one or more of the replacement values for the specified template was not specified. Ensure that the TemplateData object contains references to all of the replacement tags in the specified template.
ProductionAccessNotGrantedException(ProductionAccessNotGrantedException)
Indicates that the account has not been granted production access.
RuleDoesNotExistException(RuleDoesNotExistException)
Indicates that the provided receipt rule does not exist.
RuleSetDoesNotExistException(RuleSetDoesNotExistException)
Indicates that the provided receipt rule set does not exist.
TemplateDoesNotExistException(TemplateDoesNotExistException)
Indicates that the Template object you specified does not exist in your Amazon SES account.
TrackingOptionsAlreadyExistsException(TrackingOptionsAlreadyExistsException)
Indicates that the configuration set you specified already contains a TrackingOptions object.
TrackingOptionsDoesNotExistException(TrackingOptionsDoesNotExistException)
Indicates that the TrackingOptions object you specified does not exist.
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).