Fork me on GitHub
#clojurescript
<
2019-08-10
>
andy.fingerhut07:08:09

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.

andy.fingerhut07:08:29

Maybe just a bit of conditional reader code to handle the difference between Exception and js/Error?

👍 12
benzap09:08:46

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.

mfikes15:08:41

@andy.fingerhut For writing portable code handling the arbitrary exception type case, https://clojure.atlassian.net/browse/CLJ-1293 might simplify things