Function: cider--render-stacktrace-causes

cider--render-stacktrace-causes is a byte-compiled function defined in cider-eval.el.

Signature

(cider--render-stacktrace-causes CAUSES &optional ERROR-TYPES IS-COMPILATION REPL)

Documentation

If CAUSES is non-nil, render its contents into a new error buffer.

Optional argument ERROR-TYPES contains a list which should determine the op/situation that originated this error. If IS-COMPILATION is true, render the stacktrace into the error buffer but don't bring it forward. REPL connection can be provided to set it as the connection for the created
*cider-error* buffer.

Source Code

;; Defined in ~/.emacs.d/elpa/cider-20260414.1619/cider-eval.el
(defun cider--render-stacktrace-causes (causes &optional error-types
                                               is-compilation repl)
  "If CAUSES is non-nil, render its contents into a new error buffer.
Optional argument ERROR-TYPES contains a list which should determine the
op/situation that originated this error.
If IS-COMPILATION is true, render the stacktrace into the error buffer but
don't bring it forward.
REPL connection can be provided to set it as the connection for the created
*cider-error* buffer."
  (when causes
    (let* ((repl (or repl (cider-current-repl)))
           (error-buffer (cider-new-error-buffer #'cider-stacktrace-mode
                                                 error-types is-compilation)))
      (with-current-buffer error-buffer
        (setq cider--ancillary-buffer-repl repl))
      (cider-stacktrace-render error-buffer causes error-types))))