I'm having trouble throwing an exception with the error message I want from a list of error codes. Here's a simple example of the problem:
(def messages (map #(str %) [1 2 3])) (println messages) (throw (java.lang.Exception. (str "Whoops: " messages))) The println prints the messages just fine - I see "1 2 3". However the exception message contains something like 'clojure.lang.lazy...@13291' instead of "1 2 3". Here's a REPL session: user=> (def messages (map #(str %) [1 2 3])) #'user/messages user=> (println messages) (1 2 3) nil user=> (throw (java.lang.Exception. (str "Whoops: " messages))) java.lang.Exception: Whoops: clojure.lang.lazy...@13291 (NO_SOURCE_FILE:0) What am I missing? I want the exception message to display as "Whoops: 1 2 3". This happens with clojure 1.1 and a recent snapshot of 1.2. Thanks. Steve -- 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