Add missing RequestUriTooLong exception.
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
This commit is contained in:
parent
da35a068e9
commit
97b6c95df0
|
@ -525,6 +525,8 @@ class BaseClient(object):
|
|||
raise exception.MultipleChoices(body=res.read())
|
||||
elif status_code == httplib.INTERNAL_SERVER_ERROR:
|
||||
raise Exception("Internal Server error: %s" % res.read())
|
||||
elif status_code == httplib.REQUEST_URI_TOO_LONG:
|
||||
raise exception.RequestUriTooLong(body=res.read())
|
||||
else:
|
||||
raise Exception("Unknown error occurred! %s" % res.read())
|
||||
|
||||
|
|
|
@ -141,6 +141,8 @@ class MultipleChoices(HeatException):
|
|||
"means that you have not included a version indicator in a "
|
||||
"request URI.\n\nThe body of response returned:\n%(body)s")
|
||||
|
||||
class RequestUriTooLong(HeatException):
|
||||
message = _("The URI was too long.")
|
||||
|
||||
class InvalidContentType(HeatException):
|
||||
message = _("Invalid content type %(content_type)s")
|
||||
|
|
Loading…
Reference in New Issue