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
returns the spherical coordinates from a cartesian coordinates
dataset/ETHPy150Open jzempel/flask-exceptional/flask_exceptional.py/Exceptional._get_http_exception_handler--crossover with--dataset/ETHPy150Open los-cocos/cocos/cocos/actions/camera_actions.py/OrbitCamera.get_spherical_coords