Slingshot's throw+ generates an exception object that includes, among other 
things, all the locals in the context of your throw.

On Monday, September 3, 2012 9:03:42 PM UTC-7, Timothy Pratley wrote:
>
> I'm working on a project where it would be quite convenient to have the 
> input values to the function reported in any exceptions that get thrown. 
> I'm guessing the way to do this would be to create a replacement defn which 
> had a try catch and threw a new error with the inputs captured. Has anyone 
> tried this, know of a better way, or a library that helps in this way?

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