Pure diagnostics for namespace reload outcomes.
Pure diagnostics for namespace reload outcomes.
(reload-outcome result)Attach recovery guidance without changing the reload outcome.
Attach recovery guidance without changing the reload outcome.
(root-cause t)The innermost throwable of t's ex-cause chain as data:
{:message :class :file :line :column}. The location comes from the
innermost CompilerException-shaped link (ex-data :clojure.error/source,
/line, /column) - the root itself usually carries none. nil for nil.
The innermost throwable of `t`'s ex-cause chain as data:
{:message :class :file :line :column}. The location comes from the
innermost CompilerException-shaped link (ex-data :clojure.error/source,
/line, /column) - the root itself usually carries none. nil for nil.(root-summary {:keys [message class ns file line column]})One line naming a root cause: message, class, ns and file:line when known.
One line naming a root cause: message, class, ns and file:line when known.
(with-root-cause {:keys [exception failed] :as result})Attach :root-cause (the innermost ex-cause of :exception, plus the failed ns) to a reload result and make :error carry it after the wrapper message.
Attach :root-cause (the innermost ex-cause of :exception, plus the failed ns) to a reload result and make :error carry it after the wrapper message.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |