This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-08-10
Channels
- # announcements (4)
- # beginners (111)
- # calva (12)
- # cider (10)
- # cljdoc (1)
- # cljs-dev (7)
- # cljsrn (4)
- # clojure (38)
- # clojure-houston (1)
- # clojure-serbia (3)
- # clojure-spec (22)
- # clojure-uk (26)
- # clojurescript (4)
- # cursive (1)
- # data-science (1)
- # datomic (12)
- # klipse (1)
- # off-topic (25)
- # pathom (9)
- # protorepl (3)
- # quil (4)
- # shadow-cljs (43)
- # tools-deps (24)
Any best practices folks have found for try/catch of arbitrary Java Exception or JavaScript js/Error in common .cljc code? Even a pointer to a sample project that does this reasonably well would be helpful, as an example to work from.
Maybe just a bit of conditional reader code to handle the difference between Exception and js/Error?
I believe that later versions of clojure(script) are trying to bridge the gap in this area. I doubt that their are best practises. At least, I feel like i'm in the same boat with a lot things.
@andy.fingerhut For writing portable code handling the arbitrary exception type case, https://clojure.atlassian.net/browse/CLJ-1293 might simplify things