[D-runtime] Chaining Errors

Jonathan M Davis jmdavisProg at gmx.com
Mon Jan 24 11:53:50 PST 2011

On Monday, January 24, 2011 03:50:26 Jonathan M Davis wrote:
> On Monday, January 24, 2011 10:31:55 Sean Kelly wrote:
> > Only because they're all thrown automatically by the runtime, and that
> > code has never needed to do any chaining.  The optional argument should
> > probably be added.
> Well, I made the changes in svn revision 519, which appears to have been
> the last checkin to subversion now that we're moving over to git.

I should add though that chaining an exception to an AssertError doesn't seem to 
do much though, since only the AssertError gets printed out. I would have 
thought that all of the exceptions in the chain (along with their stack traces) 
would be printed, but that's not currently the case (tested on Linux only - 
though IIRC, Windows doesn't have stack traces at all yet).

- Jonathan M Davis

More information about the D-runtime mailing list