]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Map internal exceptions in the nova style.
authorEoghan Glynn <eglynn@redhat.com>
Wed, 15 Aug 2012 10:36:09 +0000 (10:36 +0000)
committerEoghan Glynn <eglynn@redhat.com>
Wed, 15 Aug 2012 11:33:27 +0000 (12:33 +0100)
commitf7938c0b96c047490b6eb935cbf882505ce4a811
tree0f15b1ff5bdcf2b338f9065cbcc355fd9f398868
parent5f31f6e6974d097e525dbc3157f716bf069e4702
Map internal exceptions in the nova style.

Fixes LP 1014687.

Adopt the nova idiom of internal exceptions mapped to their
corresponding HTTP reponse code in the FaultWrapper middleware,
and also inclusion of their detail message if declared safe for
external exposure.

Change-Id: I95a3c30466f6951e02f7a182545ff8db8fbecee8
cinder/api/openstack/__init__.py
cinder/exception.py
cinder/tests/test_wsgi.py
cinder/utils.py