def _get_http_exception_handler(self, app):
        handle_http_exception = app.handle_http_exception

        @wraps(handle_http_exception)
        def ret_val(exception):
            context = stack.top

            if exception.code in context.app.config["EXCEPTIONAL_HTTP_CODES"]:
                self._post_data(context)

            return handle_http_exception(exception)

        return ret_val
Get a wrapped HTTP exception handler. Returns a handler that can
dataset/ETHPy150Open jzempel/flask-exceptional/flask_exceptional.py/Exceptional._get_http_exception_handler