Re: Exception handling philosophy



Richard Grossman wrote:

> I've been trying madExcept. The reports and dialogs displayed could be very helpful and look very professional.
>
> However:
>
> I'm running into a problem with the theoretical side.
>
> 1 I have deliberately raised exceptions - these never need a bug report or any additional handling since it's all coded in.
>
> 2 There are exceptions that are explicitly handled, such as during opening and saving files, and don't need any additonal handling since they represent a local issue and not a bug.
>
> Therefore, I can't have all exceptions treated as bugs and handled in a bug-reporting system. And it's not really based on a particular exception type, it's really code-location based.


Hi Richard,

In my opinion Exceptions are just that, Exceptions, not all exceptions are bugs, I myself raise exceptions on numerous occasions, and catching them on the appropriate places, only exceptions that are not handled by my normal exception handling are bugs.


simplified i use the following logic


Application.Initialize
try
Application.Run;
except
EnableEmergencyLights;
LogError;
SaySorry;
end;
Application.Free;


I personally use MadShi to find bugs while developing, but do not include it in my final application.


Best regards,
Mario van Zeist

--

.



Relevant Pages

  • Exception handling philosophy
    ... The reports and dialogs displayed could be very helpful and look very professional. ... There are exceptions that are explicitly handled, such as during opening and saving files, and don't need any additonal handling since they represent a local issue and not a bug. ...
    (borland.public.delphi.non-technical)
  • [Un] Unangband 0.6.1 beta 6 released
    ... I\'ve had lots of bug reports and feedback, as well as a winning character since ... if the value on the damage dice roll is less ... Fixed bug when describing sense item effect. ...
    (rec.games.roguelike.angband)
  • Re: kernel bugzilla is FPOS (was: Re: "buggy cmd640" message followed by soft lockup)
    ... Andrew is going through all new bug reports. ... People like Natalie or me also go through new bug reports. ... You can always ask on the list, pointing to the Bugzilla entry in question. ...
    (Linux-Kernel)
  • Re: Delphi makes it to digg!
    ... No, I don't mean here 'names', but from our small experience we found that the best 'field test' is the one who have users from all user levels: ... someone will send you good reports from graphics area. ... for the community to identify and promote issues into the internal bug ... community to use QC, it needs to clearly know that they will have something to gain from there. ...
    (borland.public.delphi.non-technical)
  • Re: kernel bugzilla is FPOS (was: Re: "buggy cmd640" message followed by soft lockup)
    ... Andrew is going through all new bug reports. ... People like Natalie or me also go through new bug reports. ... area without a maintainer looking after the bug. ... You can always ask on the list, pointing to the Bugzilla entry in question. ...
    (Linux-Kernel)