On Nov 1, 8:47 pm, Teemu Antti-Poika <antti...@gmail.com> wrote:
> I want to use my own exceptions to control program flow. I want to
> catch my own exceptions and let the surrounding container worry about
> other exceptions. In order to do this, I must catch my exceptions
> selectively by type name, say FooException. But how do I define a
> _named_ java class in clojure? Function proxy creates an anonymous
> class and I cannot refer to it in the catch expression!

If you don't need to expose these exceptions to Java you could look
into clojure.contrib.error-kit, which allows for much nicer error
handling and includes facilities to create named hierarchical errors.
--~--~---------~--~----~------------~-------~--~----~
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