exception messages

Ali Çehreli acehreli at yahoo.com
Tue Oct 23 18:00:43 PDT 2012


On 10/23/2012 05:51 PM, Greg wrote:
> I'm attempting to learn D through a personal project, and can't figure
> out how to get the message from an exception. I've basically defined a
> custom subclass of Exception to represent when invalid inputs are
> provided, and would like to have a master catch block that handles them,
> but I can't find API docs for Throwable or Exception within the Phobos
> Library Reference. In particular, I can't find API definitions for those
> classes in either std.exception or core.exception. Where else should I
> be looking?

There is a ddoc problem at dlang.org but it is defined in object.d:

   http://dlang.org/phobos/object.html#Throwable

On my system, the .di of that module is found here:

   /usr/include/d/dmd/druntime/import/object.di

Here is the current version of the file:

 
https://github.com/D-Programming-Language/druntime/blob/master/src/object_.d

Ali


More information about the Digitalmars-d-learn mailing list