Stack trace filtering and reordering for development error output. Pure functions — no I/O, no side effects.
Stack trace filtering and reordering for development error output. Pure functions — no I/O, no side effects.
(classify-frame ns-str)Classify a namespace string as :user, :framework, or :jvm.
:user is the fallthrough, not a prefix match. An application's namespaces
are its own — examples/shop, this repository's wagoe new output, is
shop.* — and nothing here can know them in advance. Matching a prefix
instead meant application frames landed in :framework and were folded
away under "Framework (N frames)", leaving "No user code frames found"
for an error thrown in the application's own code.
Classify a namespace string as :user, :framework, or :jvm. `:user` is the fallthrough, not a prefix match. An application's namespaces are its own — `examples/shop`, this repository's `wagoe new` output, is `shop.*` — and nothing here can know them in advance. Matching a prefix instead meant application frames landed in `:framework` and were folded away under "Framework (N frames)", leaving "No user code frames found" for an error thrown in the application's own code.
(filter-stacktrace exception)Filter and reorder an exception's stack trace. Returns {:user-frames [...] :framework-frames [...] :jvm-frames [...] :total-hidden N}
Filter and reorder an exception's stack trace.
Returns {:user-frames [...] :framework-frames [...] :jvm-frames [...] :total-hidden N}(format-stacktrace {:keys [user-frames total-hidden]})Format a filtered stack trace for display.
Format a filtered stack trace for display.
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 |