On Jan 25, 1:26 am, dysinger <t...@dysinger.net> wrote: > Just wrap it if you are paranoid about exception on close > > (try (with-open [x y] > (throw (Exception. "lololol"))) > (catch Exception e (println (.getMessage e))))
The problem is that exception thrown by .close() overshadows any return value or exception thrown by the try block. This happens because throwing of exception in finally{} prevails over try{} block. Regards, Shantanu -- 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