You're viewing version 1.2.0 of print-throwable. The latest stable version of Clojure Core is 1.3.0.
1.2.0 Arrow_down_16x16

print-throwable

clojure.stacktrace

  • (print-throwable tr)
Prints the class and message of a Throwable.

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

(defn print-throwable
  "Prints the class and message of a Throwable."
  {:added "1.1"}
  [tr]
  (printf "%s: %s" (.getName (class tr)) (.getMessage tr)))
Vars in clojure.stacktrace/print-throwable: class defn printf
Used in 0 other vars

Comments top

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