Nicolas, Check out error-kit in contrib.
Brenton On Jun 29, 7:26 am, Nicolas Oury <nicolas.o...@gmail.com> wrote: > Dear all, > > Is there a high level facility in Clojure to create your own exceptions? > I know you can use genclass/proxies and extend Throwable/Exception but it > seems very (too?) close to the host language > whereas the concept of exceptions is shared among most potential hosts. > > It would seems reasonable to have a few macros (defexception, deferror, > defthrowable for example...) to abstract away > from the JVM (for clarity and portability) while keeping the same underlying > mechanism (for compatibility with the host). > > Has anyone tried anything like that? Is there a big problem with such an > approach? > > Best regards, > > Nicolas. -- 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