5 replies
by dfumagalli
I am a very satisfied Borland C++ Builder 6 user and I make heavy use of its VCL library built in exception classes.
New exceptions are as easy as deriving a descendant of one of the available classes, which already cover the most common situations.
For the best enterprise end user ease of reporting of errors, I often derive very useful exception handlers (aided by macros) that show onscreen the exact application, module file, line and error message where the exception occurred. At the sametime they (optionally) log the same error messages to a file.
Best regards,
Dario Fumagalli
by mike owens
This is the text of an e-mail received concerning this article. The reader has some interesting comments:
"Unfortunately the article recommends as positive something that is
actually considered to have emerged as a poor practice in the C++
community, and therefore that should avoided not encouraged.
The C++ committee is generally of the opinion that throw specs were an
experiment that failed, although the design of throw specs was clearly
filled with good intentions. Many coding guidelines (see
http://boost.org) now ban throw specs, with the occasional admission of
empty throw specs.
The article starts off praising Java's model of checked exceptions.
However, those too are considered by some to be an experiment that
failed, albeit for slightly different reasons: http://www.mindview.net/E
tc/Discussions/CheckedExceptions."
by mike owens
I agree that throw specs we're poorly implemented or probably a better explanation would be they were only partially implemented. The idea behind bringing throw specs up in the article was how to implement an exception architecture similar to Java's.
I happen to not agree with you on your opinion of Java's exception architecture. I think it is one of the best features in Java and is very thorough and well thought out.
by jdieter2
This discussion is closed to new replies.
Trending Web Development posts
Sort by Trending