store/[org.clojure/clojure "1.8.0"] clj::clojure.core/try

Official Documentation

Add notes

Docstring
==================================================
  catch-clause => (catch classname name expr*)
  finally-clause => (finally expr*)

  Catches and handles Java exceptions.

Example 1

Edit
;; for Clojurescript use js/Object as type
(try
  (/ 1 0)
  (catch js/Object e
    (.log js/console e)))

Example 2

Edit
=> (try
     (/ 1 0)
     (catch Exception e (str "caught exception: " (.getMessage e))))

"caught exception: Divide by zero"

Uses on crossclj