On Wed, Oct 31, 2012 at 11:22 AM, AtKaaZ <atk...@gmail.com> wrote: > seems to be working here: https://himera.herokuapp.com/index.html > > cljs.user> (try (+ 1 2) (catch js/Error e e)) > 3 > cljs.user> (try (throw (js/Error. "err1")) (catch js/Error e e)) > #<Error: err1>
This is not working: (try (throw "err1") (catch js/Error e e)) So it's better to use js/Object there: (try (throw "err1") (catch js/Object e e)) (try (throw 1) (catch js/Object e e)) (try (throw (js/Error. "err1")) (catch js/Object e e)) All of those cases work. -- Alexander -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en