Exception Hierarchy [WAS: Re: Top 5]

Benji Smith dlanguage at benjismith.net
Fri Oct 17 18:00:31 PDT 2008


Sean Kelly wrote:
> Benji Smith wrote:
>> Sean Kelly wrote:
>>> Denis Koroskin wrote:
>>>> Will we still be able to throw Object? Is Throwable an interface or 
>>>> a class?
>>>
>>> Throwable is a class, and contains all the stuff that Exception once 
>>> contained: message, file, line, a "next" reference, and trace info.
>>
>> Really???
>>
>> Trace info? On all throwables?
>>
>> That would be fantastic!!!
> 
> Throwable only provides a callback for trace info to be generated. 
> You'll still need to link a package that actually generates the trace. I 
> used to use flectioned for this purpose, but it's too stale now and no 
> longer works.  However, this is exactly why tracing is supported via a 
> plugin :-)

Gotcha. Well, I suppose that's okay. Do you know if there are any 
stacktracing libraries that currently work with D1?

For Sean, Walter & Andrei: any opinions about including stack tracing in 
the core runtime?

--benji



More information about the Digitalmars-d mailing list