SLPJ writes:

>So I appear to be in disagreement here with Alex, Amr, and Fergus about
>the importance of being able to say precisely which exception is raised.
>I'm quite content with knowing which *set* of exceptions can be raised.

I have read many, but not all of the messages on this subject. Did any of those
shed any light on the intended use of exceptions? Maybe that could explain
the disagreement. I can imagine:
1) You use exceptions for debugging your program, with the goal (naive maybe)
that none will ever be raised in the final program.
2) You learn to rely on the defined behaviour, deterministic or not, and the final
program can be perfectly acceptable if it raises any number of exceptions as long
as they are caught and handled in time. Exceptions are merely a way to structure
the code, so that the main line and error handling can be neatly separated.

Erik Zuurbier



Reply via email to