1.3.0 permalink Arrow_down_16x16



  • (repl-caught e)
Default :caught hook for repl

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/main.clj:167 top

(defn repl-caught
  "Default :caught hook for repl"
  (let [ex (repl-exception e)
        tr (.getStackTrace ex)
        el (when-not (zero? (count tr)) (aget tr 0))]
    (binding [*out* *err*]
      (println (str (-> ex class .getSimpleName)
                    " " (.getMessage ex) " "
                    (when-not (instance? clojure.lang.Compiler$CompilerException ex)
                      (str " " (if el (stack-element-str el) "[trace missing]"))))))))
Vars in clojure.main/repl-caught:
Used in 0 other vars

Comments top

No comments for repl-caught. Log in to add a comment.