summaryrefslogtreecommitdiff
path: root/boto/swf/exceptions.py
diff options
context:
space:
mode:
Diffstat (limited to 'boto/swf/exceptions.py')
-rw-r--r--boto/swf/exceptions.py37
1 files changed, 37 insertions, 0 deletions
diff --git a/boto/swf/exceptions.py b/boto/swf/exceptions.py
new file mode 100644
index 00000000..eacfda9d
--- /dev/null
+++ b/boto/swf/exceptions.py
@@ -0,0 +1,37 @@
+"""
+Exceptions that are specific to the swf module.
+
+This module subclasses the base SWF response exception,
+boto.exceptions.SWFResponseError, for some of the SWF specific faults.
+"""
+from boto.exception import SWFResponseError
+
+
+class SWFDomainAlreadyExistsError(SWFResponseError):
+ """
+ Raised when when the domain already exists.
+ """
+ pass
+
+
+class SWFLimitExceededError(SWFResponseError):
+ """
+ Raised when when a system imposed limitation has been reached.
+ """
+ pass
+
+
+class SWFOperationNotPermittedError(SWFResponseError):
+ """
+ Raised when (reserved for future use).
+ """
+
+
+class SWFTypeAlreadyExistsError(SWFResponseError):
+ """
+ Raised when when the workflow type or activity type already exists.
+ """
+ pass
+
+
+