exception messages

H. S. Teoh hsteoh at quickfur.ath.cx
Tue Oct 23 19:24:47 PDT 2012


On Wed, Oct 24, 2012 at 03:03:02AM +0200, Andrej Mitrovic wrote:
> On 10/24/12, Greg <greg.steffensen at gmail.com> 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 don't know why Throwable is not documented
> (http://dlang.org/phobos/object.html#Throwable), but you can use the
> .msg field:
[...]

Neither Throwable nor Exception are adequately documented. I decided to
remedy that:

	https://github.com/D-Programming-Language/druntime/pull/337

:)


T

-- 
Life is unfair. Ask too much from it, and it may decide you don't deserve what you have now either.


More information about the Digitalmars-d-learn mailing list