Exception Hierarchy [WAS: Re: Top 5]
Sean Kelly
sean at invisibleduck.org
Fri Oct 17 17:35:17 PDT 2008
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 :-)
Sean
More information about the Digitalmars-d
mailing list