Liking cljdoc? Tell your friends :D

wagoe.devtools.core.stacktrace

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.
raw docstring

classify-frameclj

(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.
sourceraw docstring

filter-stacktraceclj

(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}
sourceraw docstring

format-stacktraceclj

(format-stacktrace {:keys [user-frames total-hidden]})

Format a filtered stack trace for display.

Format a filtered stack trace for display.
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close