More exception classes into Phobos?

Георгий via Digitalmars-d digitalmars-d at puremagic.com
Thu Mar 23 03:36:42 PDT 2017


On Thursday, 23 March 2017 at 10:26:38 UTC, rikki cattermole 
wrote:
> On 23/03/2017 11:20 PM, Георгий wrote:
>> On Thursday, 23 March 2017 at 09:48:54 UTC, Jonathan M Davis 
>> wrote:
>>> On Thursday, March 23, 2017 09:31:23 Георгий via 
>>> Digitalmars-d wrote:
>>>
>>> If a function exists but has no implementation yet, it should 
>>> use
>>> assert(0).
>>
>> I didn't know that.
>
> That will throw an AssertError. You should try not to catch 
> Error's.
> So there still needs to be an exception of some kind.

I never supposed to catch NotImplementedException, but use it as 
assert(0). Well, maybe only at top level of web page rendering in 
a web framework to show an error message and log the stack trace.


More information about the Digitalmars-d mailing list