'Serializes the wrapped exception conforming to our error format.'

@webob.dec.wsgify(RequestClass=Request)
def __call__(self, request):

    content_type = request.best_match_content_type()
    def translate(msg):
        locale = request.best_match_language()
        return i18n.translate(msg, locale)
    self.content['overLimitFault']['message'] = translate(self.content['overLimitFault']['message'])
    self.content['overLimitFault']['details'] = translate(self.content['overLimitFault']['details'])
    serializer = {'application/json': JSONDictSerializer()}[content_type]
    content = serializer.serialize(self.content)
    self.wrapped_exc.body = content
    return self.wrapped_exc
