Liking cljdoc? Tell your friends :D

clojure+.error


*trace-transform*clj

A fn accepting and returning frame maps and omission vectors, such as ['...test-frames 4]. Applied after the configured :trace-transform.

A fn accepting and returning frame maps and omission vectors, such as
['...test-frames 4]. Applied after the configured :trace-transform.
sourceraw docstring

configclj

source

datafy-throwableclj

(datafy-throwable t)
source

install!clj

(install!)
(install! opts)

Improves the way exceptions are printed, including print*, pr*, clojure.pprint/pprint and clojure.repl/pst.

Possible options:

:clean? <bool> :: Converts Clojure-specific stack trace elements to be more clojure-like. True by default. :collapse-common? <bool> :: With chained exceptions, skips common part of stack traces. True by default. :collapse-repl? <bool> :: Collapses Compiler.eval, optional clojure.core/eval, and a following class containing "repl", plus the remaining tail. True by default. :collapse-tests? <bool> :: Whether clojure+.test elides test runner frames. True by default. :trace-transform <fn> :: A fn accepting and returning trace--a sequence of maps {:keys [element file line ns separator method]} where element is original StackTraceElement. Input can also contain omission vectors. Can insert omission vectors, e.g. ['...test-frames 4] or ['...common-frames 4], in place of removed frames. :color? <bool> :: Whether to use color output. Autodetect by default. :reverse? <bool> :: Whether to print stack trace and cause chain inner-to-outer (Java default) or outer-to-inner. Useful for REPL and small terminals as class, message and source will always be at the bottom. False by default. :root-cause-only? <bool> :: Only print root cause. False by default. :indent <int> | <string> :: how many spaces to use to indent stack trace elements. Java uses "\t", we use 2 spaces by default.

Improves the way exceptions are printed, including print*, pr*,
clojure.pprint/pprint and clojure.repl/pst.

Possible options:

  :clean?           <bool> :: Converts Clojure-specific stack trace elements
                              to be more clojure-like. True by default.
  :collapse-common? <bool> :: With chained exceptions, skips common part of
                              stack traces. True by default.
  :collapse-repl?   <bool> :: Collapses Compiler.eval, optional clojure.core/eval,
                              and a following class containing "repl", plus
                              the remaining tail. True by default.
  :collapse-tests?  <bool> :: Whether clojure+.test elides test runner frames.
                              True by default.
  :trace-transform  <fn>   :: A fn accepting and returning trace--a sequence
                              of maps {:keys [element file line ns separator method]}
                              where element is original StackTraceElement.
                              Input can also contain omission vectors.
                              Can insert omission vectors, e.g. ['...test-frames 4]
                              or ['...common-frames 4], in place of removed frames.
  :color?           <bool> :: Whether to use color output. Autodetect by default.
  :reverse?         <bool> :: Whether to print stack trace and cause chain
                              inner-to-outer (Java default) or outer-to-inner.
                              Useful for REPL and small terminals as class,
                              message and source will always be at the bottom.
                              False by default.
  :root-cause-only? <bool> :: Only print root cause. False by default.
  :indent           <int> | <string> :: how many spaces to use to indent
                              stack trace elements. Java uses "\t", we use
                              2 spaces by default.
sourceraw docstring

(print-humanly w t)
source

(print-humanly-reverse w t)
source

(print-readably w t)
source

(print-readably-reverse w t)
source

root-causeclj

(root-cause t)
source

uninstall!clj

(uninstall!)

Restore default Clojure printer for Throwable and clojure.repl/pst

Restore default Clojure printer for Throwable and clojure.repl/pst
sourceraw docstring

writecljmacro

(write w & args)
source

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