On Mon, Nov 2, 2009 at 10:00 AM, Teemu Antti-Poika <antti...@gmail.com>wrote:

>
> On Nov 1, 11:18 pm, John Harrop <jharrop...@gmail.com> wrote:
> > On Sun, Nov 1, 2009 at 3:47 PM, Teemu Antti-Poika <antti...@gmail.com
> >wrote:
> >
> > > I want to use my own exceptions to control program flow.
> >
> > That's usually not a very good idea. What exactly are you trying to do,
> for
> > which this would be useful?
>
> 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.

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to