Re: Exception handling philosophy
- From: "Mario van Zeist" <m.vanzeist@xxxxxxxxxxxxxx>
- Date: 10 Sep 2005 16:43:51 -0700
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
--
.
- References:
- Exception handling philosophy
- From: Richard Grossman
- Exception handling philosophy
- Prev by Date: Exception handling philosophy
- Next by Date: Re: Exception handling philosophy
- Previous by thread: Exception handling philosophy
- Next by thread: Re: Exception handling philosophy
- Index(es):
Relevant Pages
|