whole_func_string: function handleIntentError(req, res, next, data, intentObj) {
      if (intentObj.hasRawResult()) {
        data.rawData = intentObj.result();
      }
      req.intent = intentObj;
      return handleRequestError.call(this, data, req, res, next);
    }
func_code_string: function handleIntentError(req, res, next, data, intentObj) {
      if (intentObj.hasRawResult()) {
        data.rawData = intentObj.result();
      }
      req.intent = intentObj;
      return handleRequestError.call(this, data, req, res, next);
    }
func_documentation_string: /*
  Handles the actual error of the request's result.
  TODO: manage the errors with a view error.