Fork me on GitHub

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?

👍 3

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, might simplify things