Back to Aws Doc Sdk Examples

38 SPEC ERRORS

scenarios/features/sesv2_weekly_mailer/content/38_SPEC_ERRORS.md

latest2.6 KB
Original Source

Prepare the Application

CreateEmailIdentity

  • AlreadyExistsException: If the identity already exists, skip this step and proceed with the next operation. This error can be safely ignored.
  • NotFoundException: If the identity does not exist, fail the workflow and inform the user that the provided email address is not verified.
  • LimitExceededException: If the limit for email identities is exceeded, fail the workflow and inform the user that they have reached the limit for email identities.

CreateContactList

  • AlreadyExistsException: If the contact list already exists, skip this step and proceed with the next operation. This error can be safely ignored.
  • LimitExceededException: If the limit for contact lists is exceeded, fail the workflow and inform the user that they have reached the limit for contact lists.

Gather Subscriber Email Addresses

CreateContact

  • AlreadyExistsException: If the contact already exists, skip this step for that contact and proceed with the next contact. This error can be safely ignored.

Send the Coupon Newsletter

CreateEmailTemplate

  • AlreadyExistsException: If the template already exists, skip this step and proceed with the next operation. This error can be safely ignored.
  • LimitExceededException: If the limit for email templates is exceeded, fail the workflow and inform the user that they have reached the limit for email templates.

ListContacts

  • NotFoundException: If the contact list does not exist, fail the workflow and inform the user that the contact list is missing.

SendEmail

  • AccountSuspendedException: If the account is suspended, fail the workflow and inform the user that their account is suspended.
  • MailFromDomainNotVerifiedException: If the sending domain is not verified, fail the workflow and inform the user that the sending domain is not verified.
  • MessageRejected: If the message is rejected due to invalid content, fail the workflow and inform the user that the message content is invalid.
  • SendingPausedException: If sending is paused, fail the workflow and inform the user that sending is currently paused for their account.

Clean Up

DeleteContactList

  • NotFoundException: If the contact list does not exist, skip this step and proceed with the next operation. This error can be safely ignored.

DeleteEmailTemplate

  • NotFoundException: If the email template does not exist, skip this step and proceed with the next operation. This error can be safely ignored.

DeleteEmailIdentity

  • NotFoundException: If the email identity does not exist, skip this step and proceed with the next operation. This error can be safely ignored.