]> review.fuel-infra Code Review - openstack-build/heat-build.git/commitdiff
Remove some heat-cfnclients only exceptions
authorLiang Chen <cbjchen@cn.ibm.com>
Tue, 3 Sep 2013 05:30:50 +0000 (13:30 +0800)
committerLiang Chen <cbjchen@cn.ibm.com>
Tue, 3 Sep 2013 05:35:30 +0000 (13:35 +0800)
Remove some exceptions that were written specifically for
heat-cfnclients and are unlikely to be referenced anywhere
else in the future.

Change-Id: I834138a833042449293f7b96a6c5bcfba8424d73

heat/common/exception.py

index 1f92baf4043af629e9201c02a41fb157b1e93a35..5b65076d792aa69bfa312f5378ea9b15884cbe13 100644 (file)
@@ -167,34 +167,6 @@ class ClientConfigurationError(HeatException):
     message = _("There was an error configuring the client.")
 
 
-class MultipleChoices(HeatException):
-    message = _("The request returned a 302 Multiple Choices. This generally "
-                "means that you have not included a version indicator in a "
-                "request URI.\n\nThe body of response returned:\n%(body)s")
-
-
-class LimitExceeded(HeatException):
-    message = _("The request returned a 413 Request Entity Too Large. This "
-                "generally means that rate limiting or a quota threshold was "
-                "breached.\n\nThe response body:\n%(body)s")
-
-    def __init__(self, *args, **kwargs):
-        self.retry_after = (int(kwargs['retry']) if kwargs.get('retry')
-                            else None)
-        super(LimitExceeded, self).__init__(*args, **kwargs)
-
-
-class ServiceUnavailable(HeatException):
-    message = _("The request returned a 503 ServiceUnavilable. This "
-                "generally occurs on service overload or other transient "
-                "outage.")
-
-    def __init__(self, *args, **kwargs):
-        self.retry_after = (int(kwargs['retry']) if kwargs.get('retry')
-                            else None)
-        super(ServiceUnavailable, self).__init__(*args, **kwargs)
-
-
 class RequestUriTooLong(HeatException):
     message = _("The URI was too long.")