Liking cljdoc? Tell your friends :D

clojure+.error


*trace-transform*clj

source

configclj

source

datafy-throwableclj

(datafy-throwable t)
source

install!clj

(install!)
(install! opts)

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

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. :trace-transform <fn> :: A fn accepting and returning trace--a sequence of maps {:keys [element file line ns method]} where element is original StackTraceElement. :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*,
and clojure.pprint/pprint.

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.
  :trace-transform  <fn>   :: A fn accepting and returning trace--a sequence
                              of maps {:keys [element file line ns method]}
                              where element is original StackTraceElement.
  :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

Restore default Clojure printer for Throwable
sourceraw docstring

writecljmacro

(write w & args)
source

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close