           (vectorp results))
       (run-hook-with-args 'ycmd-file-parse-result-hook results)
     (when (assoc 'exception results)
-      (ycmd--handle-exception results))))
+      (ycmd--handle-exception
+       results #'ycmd--handle-buffer-parsing-exception))))
 
 (defun ycmd-notify-file-ready-to-parse ()
   "Send a notification to ycmd that the buffer is ready to be parsed.

                            `((filepath . ,conf-file))))))
    (ycmd-notify-file-ready-to-parse)))

(defun ycmd--handle-notify-response (results)
  "If RESULTS is a vector or nil, the response is an acual parse result.
Otherwise the response is probably an exception."

(defun ycmd-parse-buffer ()
  "Parse buffer."
  (interactive)
  (ycmd--report-status 'unparsed)
  (ycmd--conditional-parse))

(defun ycmd--handle-extra-conf-exception (result)
