Re: documenting exceptions

From: Steven T. Hatton (susudata_at_setidava.kushan.aa)
Date: 05/26/04


Date: Wed, 26 May 2004 14:33:16 -0400

Ian Lazarus wrote:

> Hello,
> Are you aware of any tool which analyzes source code and documents the
> exceptions thrown for each routine in each source file for a project?
> Thanks

This is one of the main reasons I don't like C++ exception syntax. I
understand there are legacy issues, but the fact that exceptions
potentially thrown by a function are not required to be part of the
signature bothers me. I believe the tool you are looking for is called a
good programmer.

-- 
STH 
Hatton's Law: "There is only One inviolable Law"
KDevelop: http://www.kdevelop.org  SuSE: http://www.suse.com
Mozilla: http://www.mozilla.org


Relevant Pages

  • Re: documenting exceptions
    ... I was only suggesting that the only ... way to effectively accomplish your goal is to be sure the code was written ... the exceptions to the declarations. ... "There is only One inviolable Law" ...
    (comp.lang.cpp)
  • Re: vc6 exceptions not caught by vs2005
    ... I see that exceptions thrown by some api's in ... implementations and VC6 and VS2005 count as such. ... that no exceptions are thrown across the function calls. ... Recompile all code with the same C++ compiler. ...
    (microsoft.public.vc.language)
  • Re: Real life cost of using exceptions for control flow?
    ... found exceptions thrown by System.Drawing during a display pass caused such ... a dramatic slow-down that we wrote elaborate code to avoid exceptions. ... For us, the difference was a smooth display, versus an unusable ... >> If you have a lot of cleanup and deallocations in the catch block, ...
    (microsoft.public.dotnet.framework.performance)
  • Exception thrown without a stack frame
    ... I'm getting exceptions thrown without a stackframe. ... I have set an exception handler to dump these so-called uncaught exceptions ... The problem only occurs on the production server, ...
    (php.general)
  • Re: Real life cost of using exceptions for control flow?
    ... > This test cannot be generalized to all exception performance problems. ... > found exceptions thrown by System.Drawing during a display pass caused such ... > a dramatic slow-down that we wrote elaborate code to avoid exceptions. ... For us, the difference was a smooth display, versus an unusable ...
    (microsoft.public.dotnet.framework.performance)