Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(951)

Unified Diff: third_party/gsutil/boto/boto/ses/exceptions.py

Issue 12317103: Added gsutil to depot tools (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/depot_tools.git@master
Patch Set: Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/gsutil/boto/boto/ses/connection.py ('k') | third_party/gsutil/boto/boto/storage_uri.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/gsutil/boto/boto/ses/exceptions.py
diff --git a/third_party/gsutil/boto/boto/ses/exceptions.py b/third_party/gsutil/boto/boto/ses/exceptions.py
new file mode 100644
index 0000000000000000000000000000000000000000..c3341ece0ddd731353e2e23c051a08565e39869c
--- /dev/null
+++ b/third_party/gsutil/boto/boto/ses/exceptions.py
@@ -0,0 +1,77 @@
+"""
+Various exceptions that are specific to the SES module.
+"""
+from boto.exception import BotoServerError
+
+class SESError(BotoServerError):
+ """
+ Sub-class all SES-related errors from here. Don't raise this error
+ directly from anywhere. The only thing this gets us is the ability to
+ catch SESErrors separately from the more generic, top-level
+ BotoServerError exception.
+ """
+ pass
+
+
+
+class SESAddressNotVerifiedError(SESError):
+ """
+ Raised when a "Reply-To" address has not been validated in SES yet.
+ """
+ pass
+
+class SESIdentityNotVerifiedError(SESError):
+ """
+ Raised when an identity (domain or address) has not been verified in SES yet.
+ """
+ pass
+
+class SESDomainNotConfirmedError(SESError):
+ """
+ """
+ pass
+
+class SESAddressBlacklistedError(SESError):
+ """
+ After you attempt to send mail to an address, and delivery repeatedly
+ fails, said address is blacklisted for at least 24 hours. The blacklisting
+ eventually expires, and you are able to attempt delivery again. If you
+ attempt to send mail to a blacklisted email, this is raised.
+ """
+ pass
+
+
+class SESDailyQuotaExceededError(SESError):
+ """
+ Your account's daily (rolling 24 hour total) allotment of outbound emails
+ has been exceeded.
+ """
+ pass
+
+
+class SESMaxSendingRateExceededError(SESError):
+ """
+ Your account's requests/second limit has been exceeded.
+ """
+ pass
+
+
+class SESDomainEndsWithDotError(SESError):
+ """
+ Recipient's email address' domain ends with a period/dot.
+ """
+ pass
+
+
+class SESLocalAddressCharacterError(SESError):
+ """
+ An address contained a control or whitespace character.
+ """
+ pass
+
+
+class SESIllegalAddressError(SESError):
+ """
+ Raised when an illegal address is encountered.
+ """
+ pass
« no previous file with comments | « third_party/gsutil/boto/boto/ses/connection.py ('k') | third_party/gsutil/boto/boto/storage_uri.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698