On Nov 2, 7:12 pm, John Harrop <jharrop...@gmail.com> wrote: > On Mon, Nov 2, 2009 at 10:00 AM, Teemu Antti-Poika <antti...@gmail.com>wrote: > > > I expressed myself poorly: what I meant was simply that I want to use > > exceptions to handle some error situations but leave some exceptions > > for the servlet container to handle. I did not mean to use exceptions > > as loop exit mechanisms or such. > > Use catch clauses with specific exception classes to catch only the > exceptions you want to handle.
Uhh...exactly what I was planning on doing, except I also needed to define those exception classes. And to do that in clojure one needs to compile those exception classes first (with gen-class) in order to give them a name. But I already took advice from above and used error-kit instead. It does the job very nicely. Thanks for advice, everyone. Teemu --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---