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

2 Examples top

  • => (try
         (/ 1 0)
         (catch Exception e (str "caught exception: " (.getMessage e))))
    "caught exception: Divide by zero"
  • ;; for Clojurescript use js/Object as type
       (/ 1 0)
       (catch js/Object e
           (.log js/console e)))
Log in to add / edit an example.

See Also top

Log in to add a see also.

Comments top

No comments for try. Log in to add a comment.