Throwable->map

added
1.7

ns
clojure.core

type
function

(Throwable->map o)

Constructs a data representation for a Throwable.

                (def trace (try (/ 1 0) (catch Throwable t (Throwable->map t))))
(keys trace)
;; (:cause :via :trace)
(:cause trace)
;; "Divide by zero"
(count (:trace trace))
;; 33 (this stack trace is 33 invocations deep)