OLD | NEW |
(Empty) | |
| 1 """ |
| 2 Various exceptions that are specific to the SES module. |
| 3 """ |
| 4 from boto.exception import BotoServerError |
| 5 |
| 6 class SESError(BotoServerError): |
| 7 """ |
| 8 Sub-class all SES-related errors from here. Don't raise this error |
| 9 directly from anywhere. The only thing this gets us is the ability to |
| 10 catch SESErrors separately from the more generic, top-level |
| 11 BotoServerError exception. |
| 12 """ |
| 13 pass |
| 14 |
| 15 |
| 16 |
| 17 class SESAddressNotVerifiedError(SESError): |
| 18 """ |
| 19 Raised when a "Reply-To" address has not been validated in SES yet. |
| 20 """ |
| 21 pass |
| 22 |
| 23 class SESIdentityNotVerifiedError(SESError): |
| 24 """ |
| 25 Raised when an identity (domain or address) has not been verified in SES yet
. |
| 26 """ |
| 27 pass |
| 28 |
| 29 class SESDomainNotConfirmedError(SESError): |
| 30 """ |
| 31 """ |
| 32 pass |
| 33 |
| 34 class SESAddressBlacklistedError(SESError): |
| 35 """ |
| 36 After you attempt to send mail to an address, and delivery repeatedly |
| 37 fails, said address is blacklisted for at least 24 hours. The blacklisting |
| 38 eventually expires, and you are able to attempt delivery again. If you |
| 39 attempt to send mail to a blacklisted email, this is raised. |
| 40 """ |
| 41 pass |
| 42 |
| 43 |
| 44 class SESDailyQuotaExceededError(SESError): |
| 45 """ |
| 46 Your account's daily (rolling 24 hour total) allotment of outbound emails |
| 47 has been exceeded. |
| 48 """ |
| 49 pass |
| 50 |
| 51 |
| 52 class SESMaxSendingRateExceededError(SESError): |
| 53 """ |
| 54 Your account's requests/second limit has been exceeded. |
| 55 """ |
| 56 pass |
| 57 |
| 58 |
| 59 class SESDomainEndsWithDotError(SESError): |
| 60 """ |
| 61 Recipient's email address' domain ends with a period/dot. |
| 62 """ |
| 63 pass |
| 64 |
| 65 |
| 66 class SESLocalAddressCharacterError(SESError): |
| 67 """ |
| 68 An address contained a control or whitespace character. |
| 69 """ |
| 70 pass |
| 71 |
| 72 |
| 73 class SESIllegalAddressError(SESError): |
| 74 """ |
| 75 Raised when an illegal address is encountered. |
| 76 """ |
| 77 pass |
OLD | NEW |