summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2015-01-22 02:32:55 +0000
committerGerrit Code Review <review@openstack.org>2015-01-22 02:32:55 +0000
commit5b807bf2c0a3e22564c78250d42887d9d4f15c65 (patch)
tree5f9580e74b3315eb218c418b4d15bf91385133f5
parentddd942edc2901cf6c8ac30ef322cb94f8c895766 (diff)
parentebd5ed69fc6034e514c738d88a7daaa6c556952b (diff)
downloadtempest-lib-5b807bf2c0a3e22564c78250d42887d9d4f15c65.tar.gz
Merge "Make rest_client exception inheritances easy"
-rw-r--r--tempest_lib/exceptions.py10
1 files changed, 3 insertions, 7 deletions
diff --git a/tempest_lib/exceptions.py b/tempest_lib/exceptions.py
index 8907cd1..d97d158 100644
--- a/tempest_lib/exceptions.py
+++ b/tempest_lib/exceptions.py
@@ -50,10 +50,6 @@ class RestClientException(TempestException,
pass
-class RFCViolation(RestClientException):
- message = "RFC Violation"
-
-
class InvalidHttpSuccessCode(RestClientException):
message = "The success code is different than the expected one"
@@ -66,7 +62,7 @@ class Unauthorized(RestClientException):
message = 'Unauthorized'
-class TimeoutException(TempestException):
+class TimeoutException(RestClientException):
message = "Request timed out"
@@ -98,12 +94,12 @@ class Conflict(RestClientException):
message = "An object with that identifier already exists"
-class ResponseWithNonEmptyBody(RFCViolation):
+class ResponseWithNonEmptyBody(RestClientException):
message = ("RFC Violation! Response with %(status)d HTTP Status Code "
"MUST NOT have a body")
-class ResponseWithEntity(RFCViolation):
+class ResponseWithEntity(RestClientException):
message = ("RFC Violation! Response with 205 HTTP Status Code "
"MUST NOT have an entity")