In clj, I can do something like: (defn exception->error [exception] {:tag :error :object (ex-data exception) :message (.getMessage exception) :stack-trace (=> ** (.getStackTrace exception) (filter #(.endsWith (.getFileName %) "clj") **) (filter (fn [sf] (let [cn (.getClassName sf)] (not (or (.startsWith cn "clojure") (.startsWith cn "cljx"))))) **) (map (fn [sf] {:file-name (.getFileName sf) :line-number (.getLineNumber sf) :class-name (.getClassName sf)}) **))})
in cljs, what is the equiv I can do? Basically, I want the message, object thrown (via ex-info), and a stacktrace consisting of file names / line numbers. Thanks! -- -- 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 --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.