Program logic bugs vs input/environmental errors

Walter Bright via Digitalmars-d digitalmars-d at puremagic.com
Wed Oct 29 15:35:30 PDT 2014


On 10/27/2014 1:54 PM, Sean Kelly wrote:
> On Friday, 24 October 2014 at 19:09:23 UTC, Walter Bright wrote:
>>
>> You can insert your own handler with core.assertHandler(myAssertHandler). Or
>> you can catch(Error). But you don't want to try doing anything more than
>> notification with that - the program is in an unknown state.
>
> Also be aware that if you throw an Exception from the assertHandler you could be
> violating nothrow guarantees.

Right.


More information about the Digitalmars-d mailing list