From: Liang Chen Date: Tue, 3 Sep 2013 05:30:50 +0000 (+0800) Subject: Remove some heat-cfnclients only exceptions X-Git-Tag: 2014.1~70^2 X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=6c5c47fa0e7daa9d61e87b4e3335b0f07aab3a9d;p=openstack-build%2Fheat-build.git Remove some heat-cfnclients only exceptions Remove some exceptions that were written specifically for heat-cfnclients and are unlikely to be referenced anywhere else in the future. Change-Id: I834138a833042449293f7b96a6c5bcfba8424d73 --- diff --git a/heat/common/exception.py b/heat/common/exception.py index 1f92baf4..5b65076d 100644 --- a/heat/common/exception.py +++ b/heat/common/exception.py @@ -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.")