D's constructor call hierarchy (Was: Re: [Bug 91] Inherited classes require base class to have a default constructor.)

Søren J. Løvborg web at kwi.dk
Wed Apr 12 06:12:51 PDT 2006


Bruno Medeiros wrote:
> What do you mean by exception chaining?
> Do you mean exception aggregation/composition (where one specifies an 
> exception as a sub cause of the parent exception)?. Or you mean nested 
> exception throwing, where you throw a new, unrelated exception in a catch 
> block and still have info about the previous exception?

The first. I don't envision any sort of special compiler support for it, 
which would really be required for the latter.

The latter is also a much less common problem, I think. And if an exception 
occurs in your exception handler, your primary goal should be to fix the 
exception handler, anyway (if possible).

-- 
Søren J. Løvborg
web at kwi.dk 





More information about the Digitalmars-d mailing list