        :parser 'json-read
        :sync sync))))
 
-(defun ycmd--handle-exception (request-type result)
-  "Handle exception for REQUEST-TYPE in completion RESULT.
+(defun ycmd--handle-exception (result)
+  "Handle exception in completion RESULT.
 
 This function handles `UnknownExtraConf', `ValueError' and
 `RuntimeError' exceptions."

Otherwise the response is probably an exception."
  (if (and (not (vectorp results))
           (assq 'exception results))
      (ycmd--handle-exception "NotifyParse" results)
    (ycmd--report-status 'parsed)
    (run-hook-with-args 'ycmd-file-parse-result-hook results)))


      ("UnknownExtraConf"
       (ycmd--handle-extra-conf-exception .exception.extra_conf_file))
      ((or "ValueError" "RuntimeError")
       (ycmd--handle-error-exception .message)))))

(defun ycmd--send-request (type success-handler)
  "Send a request of TYPE to the `ycmd' server.
