1.3.0 permalink Arrow_down_16x16

print-cause-trace

clojure.stacktrace

  • (print-cause-trace tr)
  • (print-cause-trace tr n)
Like print-stack-trace but prints chained exceptions (causes).

0 Examples top

Log in to add / edit an example.

See Also top

Log in to add a see also.

Plus_12x12 Minus_12x12 Source clojure/stacktrace.clj:64 top

(defn print-cause-trace
  "Like print-stack-trace but prints chained exceptions (causes)."
  {:added "1.1"}
  ([tr] (print-cause-trace tr nil))
  ([tr n]
     (print-stack-trace tr n)
     (when-let [cause (.getCause tr)]
       (print "Caused by: " )
       (recur cause n))))
Vars in clojure.stacktrace/print-cause-trace:
Used in 0 other vars

Comments top

No comments for print-cause-trace. Log in to add a comment.