[phobos] Exception chaining

Jonathan M Davis jmdavisProg at gmx.com
Tue Jan 11 14:14:18 PST 2011


On Tuesday, January 11, 2011 12:44:51 Lars Tandle Kyllingstad wrote:
> I think this is a good rule.  As you say, it is simple and easy to
> understand, and it ensures no critical exceptions are "lost" somewhere
> in a chain.  I would be very dissatisfied if my program throws an Error
> and it is caught (indirectly) by a catch(FileException) clause.

I concur. That would seem to be a good approach. Errors definitely shouldn't be 
buried just because of an exception chain, but if it's just a bunch of chained 
Exceptions, you should still be able to catch them.

- Jonathan M Davis


More information about the phobos mailing list