Rich,
When I do the following:
(gen-and-load-class 'user.UserException :extends Exception)
(defn th [arg]
(throw (new user.UserException "thrown exception")))
(defn test-fn []
(try
(dorun (map th '(1 2 3)))
(catch user.UserException e
(println "caught" e))
(finally (println "finally clause"))))
and then execute test-fn, the exception is not caught.
user=> (test-fn)
finally clause
java.lang.RuntimeException: user.UserException: thrown exception
(NO_SOURCE_FILE:0)
So am I doing something wrong or is this a bug when an exception is
thrown from inside a call to map?
Thanks,
Jim
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Clojure" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
-~----------~----~----~----~------~----~------~--~---