scgilardi/slingshot

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

Closed this issue · 1 comments

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.

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