[phobos] Exceptions in Phobos

Lars Tandle Kyllingstad lars at kyllingen.net
Mon Feb 11 22:46:47 PST 2013


Some time last year, I noticed there was at least one huge discussion 
about exceptions, and about how Phobos' exception hierarchy should be 
structured.  Did that discussion lead to any conclusions, or any kind of 
consensus?  (Please don't make me read through hundreds of old forum 
messages; I'm just looking for a quick summary.)

The reason I'm asking is that I'm putting the final polish on the new 
std.process(*), and I need to decide whether each function should simply 
throw Exception on failure, or whether some of them should throw more 
specialised exceptions.


(*) Yes, I know, I've said this before.  But it's for real this time; 
look, all tests are green:


More information about the phobos mailing list