Enrich classified errors with stacktrace, suggestions, fix info, and URLs. Pure functions — no I/O, no side effects.
Each sub-call is wrapped in try/catch for self-protection: if any enrichment step fails, that field is omitted rather than crashing the pipeline.
Enrich classified errors with stacktrace, suggestions, fix info, and URLs. Pure functions — no I/O, no side effects. Each sub-call is wrapped in try/catch for self-protection: if any enrichment step fails, that field is omitted rather than crashing the pipeline.
(enrich {:keys [code exception data] :as classified})Enrich a classified error map with additional context.
Adds:
Each field is independently protected: if a sub-call fails, that field is omitted from the result.
Enrich a classified error map with additional context. Adds: - :stacktrace — filtered/reordered stack trace - :suggestions — 'Did you mean?' suggestions (when applicable) - :fix — auto-fix descriptor or nil - :dashboard-url — link to dev dashboard error page - :docs-url — link to error code documentation Each field is independently protected: if a sub-call fails, that field is omitted from the result.
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 |