followed strategy #1 explained here to write (try ... (catch e ...)) and (try ... (catch _ ...)) , no luck.The compiler says "unsupported bind form". Maybe this construct just not implemented now.--
在 2012年9月27日星期四UTC+8下午11时08分22秒,Dima B写道:Hi,I came to the point where I need to be able to catch all javascript exceptions, log them down and swallow. I've been trying to achieve this by(try ... (catch Exception e ...))(try ... (catch nil e ...))(try ... (catch js/object e ...))and nothing seems to do the trick.Could you please help me find the syntax which allows me to catch and swallow all exceptions in clojurescript?I'm using all latest (clojurescript via cljsbuild).Thank you,Dima
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clo...@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+u...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
On the server (I'm using Noir which supplies defpage)
(defpage [:post "/er"] {:keys [error line script trace]}
(service/record-client-error error line script trace)
(str "ACK"))
where record-client-error is a function you create that does whatever you want it to do e.g. save to a database, log using log4j or send to an aggregator e.g. Loggly
I know this is still pretty brief. If you want more detail, just say which part is not clear - I'll happily elaborate
--