diff options
| author | Rajaram Mallya <rajarammallya@gmail.com> | 2011-09-08 18:29:40 +0530 |
|---|---|---|
| committer | Rajaram Mallya <rajarammallya@gmail.com> | 2011-09-08 18:29:40 +0530 |
| commit | 02c95aeb2ffe112f7b60a1d3c53cdde22bc5db4d (patch) | |
| tree | 4d568600fcfe27a20552e8a9184b08cbca49e2fc /openstack/common/exception.py | |
| parent | 87dceb46c403305264387925efd5baa1ecb91c54 (diff) | |
| download | oslo-02c95aeb2ffe112f7b60a1d3c53cdde22bc5db4d.tar.gz oslo-02c95aeb2ffe112f7b60a1d3c53cdde22bc5db4d.tar.xz oslo-02c95aeb2ffe112f7b60a1d3c53cdde22bc5db4d.zip | |
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
Diffstat (limited to 'openstack/common/exception.py')
| -rw-r--r-- | openstack/common/exception.py | 4 |
1 files changed, 4 insertions, 0 deletions
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" |
