From 6c5c47fa0e7daa9d61e87b4e3335b0f07aab3a9d Mon Sep 17 00:00:00 2001 From: Liang Chen Date: Tue, 3 Sep 2013 13:30:50 +0800 Subject: [PATCH] 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 --- heat/common/exception.py | 28 ---------------------------- 1 file changed, 28 deletions(-) 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.") -- 2.45.2