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 -
Hi,
On Jun 24, 6:34 am, Steve Molitor stevemoli...@gmail.com wrote:
user= (throw (java.lang.Exception. (str Whoops: messages)))
java.lang.Exception: Whoops: clojure.lang.lazy...@13291 (NO_SOURCE_FILE:0)
Wrap messages into a call to seq.
Sincerely
Meikel
--
You received this message
That did the trick, thanks.
Steve
On Thu, Jun 24, 2010 at 9:43 AM, Meikel Brandmeyer m...@kotka.de wrote:
Hi,
On Jun 24, 6:34 am, Steve Molitor stevemoli...@gmail.com wrote:
user= (throw (java.lang.Exception. (str Whoops: messages)))
java.lang.Exception: Whoops: