Program logic bugs vs input/environmental errors

Sean Kelly via Digitalmars-d digitalmars-d at puremagic.com
Sun Sep 28 09:16:07 PDT 2014


On Sunday, 28 September 2014 at 00:40:26 UTC, Walter Bright wrote:
>
> Whoa, Camel! You're again thinking of Exceptions as a debugging 
> tool.

They can be.  What if an API you're using throws an exception you 
didn't expect, and therefore don't handle?  This might be 
considered a logic error if the exception is recoverable and you 
don't intend the program to abort from that operation.


More information about the Digitalmars-d mailing list