Program logic bugs vs input/environmental errors

luka8088 via Digitalmars-d digitalmars-d at puremagic.com
Sun Sep 28 13:02:35 PDT 2014


On 28.9.2014. 21:32, Walter Bright wrote:
> On 9/28/2014 11:25 AM, bearophile wrote:
>> Exceptions are often used to help debugging...
>
>
> https://www.youtube.com/watch?v=hBhlQgvHmQ0

Example exception messages:

Unable to connect to database
Invalid argument count
Invalid network package format

All this messages do not require a stack trace as they do not require 
code fixes, they indicate an issue outside the program itself. If stack 
trace is required then assert should have been used instead.

Or to better put it: can anyone give an example of exception that would 
require stack trace?



More information about the Digitalmars-d mailing list