@webob.dec.wsgify(RequestClass=Request)
    def __call__(self, req):
        # Replace the body with fault details.
        fault_data, metadata = self._body_function(self.wrapped_exc)
        content_type = req.best_match_content_type()
        serializer = {
            'application/json': JSONDictSerializer(),
        }[content_type]

        self.wrapped_exc.body = serializer.serialize(fault_data)
        self.wrapped_exc.content_type = content_type
        return self.wrapped_exc


# NOTE(salvatore-orlando): this class will go once the
# extension API framework is updated
Simple exception handler to allow post-completion status.
dataset/ETHPy150Open openstack/neutron/neutron/wsgi.py/Fault.__call__--crossover with--dataset/ETHPy150Open GoogleCloudPlatform/gsutil/gslib/copy_helper.py/_ParallelCopyExceptionHandler