From 02c95aeb2ffe112f7b60a1d3c53cdde22bc5db4d Mon Sep 17 00:00:00 2001 From: Rajaram Mallya Date: Thu, 8 Sep 2011 18:29:40 +0530 Subject: Rajaram/Vinkesh | Copied tests for wsgi from nova. Added default content/accept types in Request which can be overridden by projects. Copied tests for XML serialization of Extension Controller's action from nova --- openstack/common/exception.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'openstack/common/exception.py') diff --git a/openstack/common/exception.py b/openstack/common/exception.py index a81355e..ba32da5 100644 --- a/openstack/common/exception.py +++ b/openstack/common/exception.py @@ -139,5 +139,9 @@ class OpenstackException(Exception): return self._error_string +class MalformedRequestBody(OpenstackException): + message = "Malformed message body: %(reason)s" + + class InvalidContentType(OpenstackException): message = "Invalid content type %(content_type)s" -- cgit