commit a1c194cf060b2d563beb36261c7702950446756f
Author: Kevin Benton <email address hidden>
Date: Fri May 13 14:29:18 2016 -0700
Make exception translation common and add to pecan
This moves the exception translation logic from the
legacy api.v2.resource module to a common module and
re-uses it from pecan to bring consistency to the
way language and exception translation is handled
between the two.
This also adjusts the policy enforcement hook to correctly
handle the unsupported method case since 'after' hooks
are executed after 'on_error' hooks that return an exception.
Reviewed: https:/ /review. openstack. org/319015 /git.openstack. org/cgit/ openstack/ neutron/ commit/ ?id=a1c194cf060 b2d563beb36261c 7702950446756f
Committed: https:/
Submitter: Jenkins
Branch: master
commit a1c194cf060b2d5 63beb36261c7702 950446756f
Author: Kevin Benton <email address hidden>
Date: Fri May 13 14:29:18 2016 -0700
Make exception translation common and add to pecan
This moves the exception translation logic from the
legacy api.v2.resource module to a common module and
re-uses it from pecan to bring consistency to the
way language and exception translation is handled
between the two.
This also adjusts the policy enforcement hook to correctly
handle the unsupported method case since 'after' hooks
are executed after 'on_error' hooks that return an exception.
Closes-Bug: #1583844 615f3b909accf0f 718e320d1c2
Change-Id: If3c2d8c94ca6c1