The Proper Use of Exception Chaining: Caught between two conflicting usecases?

Meta jared771 at gmail.com
Sat Apr 27 07:08:50 UTC 2019


On Friday, 26 April 2019 at 08:32:58 UTC, FeepingCreature wrote:
> On Tuesday, 9 April 2019 at 14:27:37 UTC, FeepingCreature wrote:
>> What do you think?
>
> Ping! This is a severe issue making debugging pointlessly hard.

Case 2 is the intended use for chained exceptions. It's an answer 
to the question of "what happens if you throw an exception while 
another one is already in flight?" In the case of C++, the 
program is immediately aborted. In D's case, the second exception 
will be chained onto the first one.


More information about the Digitalmars-d mailing list