Change rest client exceptions' inheritances

RateLimitExceeded, ServerFault and OverLimit raise at rest_client layer
and they should inherit from RestClientException for representing what
happens clearly. This patch changes them.

Change-Id: I0b74bd44a88cc68bdaeab6bd605722d47f5a28a9
This commit is contained in:
Ken'ichi Ohmichi 2014-12-10 06:21:16 +00:00 committed by Ken'ichi Ohmichi
parent 3a94488ced
commit c240bccc91

View File

@ -140,15 +140,15 @@ class EndpointNotFound(TempestException):
message = "Endpoint not found"
class RateLimitExceeded(TempestException):
class RateLimitExceeded(RestClientException):
message = "Rate limit exceeded"
class OverLimit(TempestException):
class OverLimit(RestClientException):
message = "Quota exceeded"
class ServerFault(TempestException):
class ServerFault(RestClientException):
message = "Got server fault"