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:
parent
3a94488ced
commit
c240bccc91
@ -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"
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user