root-cause

clojure.stacktrace

  • (root-cause tr)
Returns the last 'cause' Throwable in a chain of Throwables.

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:18 top

(defn root-cause
  "Returns the last 'cause' Throwable in a chain of Throwables."
  {:added "1.1"}
  [tr]
  (if-let [cause (.getCause tr)]
    (recur cause)
    tr))
Vars in clojure.stacktrace/root-cause:
Used in 0 other vars

Comments top

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