Provide a simple means of adding a cause exception in throw+ #29

hugoduncan opened this Issue Oct 5, 2012 · 1 comment


None yet
2 participants

hugoduncan commented Oct 5, 2012

When dealing with threads (eg, agents, or futures), exception objects are sometimes reported outside of a catch context. When wrapping these exceptions, it would be useful to be able to specify them as a cause. At present the only way to do this is to create a lexical context around the throw+ which binds &throw-context with the exception required as the cause. This seems fragile and unnecessarily complex.


scgilardi commented Oct 13, 2014

#48 intends to address this. Reviews and comments appreciated.

@scgilardi scgilardi added a commit that referenced this issue Oct 18, 2014

@scgilardi scgilardi Merge pull request #48 from scgilardi/allow-specifying-the-cause
provide optional argument to throw+ to allow specifying the cause explicitly, addresses issue #29

scgilardi closed this Oct 18, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment