www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Exception class descendants

reply "ref2401" <refactor24 gmail.com> writes:
Could you please tell me if Phobos contains any Exception class 
descendants? If so, does the documentation contain a full list of 
these or even the hierarchy scheme?
Oct 29 2012
next sibling parent "bearophile" <bearophileHUGS lycos.com> writes:
ref2401:

 Could you please tell me if Phobos contains any Exception class 
 descendants?

Andrei doesn't lover of hierarchies of exceptions. But there was a discussion to add some commonly useful exceptions to Phobos. Bye, bearophile
Oct 29 2012
prev sibling parent Jonathan M Davis <jmdavisProg gmx.com> writes:
On Monday, October 29, 2012 14:55:41 ref2401 wrote:
 Could you please tell me if Phobos contains any Exception class
 descendants? If so, does the documentation contain a full list of
 these or even the hierarchy scheme?

Some modules declare exception types that they use (e.g. std.file.FileException and std.utf.UTFException), but there are very few which aren't derived directly from Exception, and for the most part, they're only used by the module which declares them. There was some discussion a while back of improving the hierarchy a bit, but it's never happened. - Jonathan M Davis
Oct 29 2012