Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

4
  • What use is this since exceptions are thrown across method boundaries? I mean, what can you do with the knowledge the method A only throws exception E if A calls B which in turn throws F, and then B calls C which throws G and so on! I mean, what useful analysis can you perform with this information? Commented Jan 28, 2011 at 15:05
  • @David: well you could add exception thrown by B to the documentation of A. The difference is that you only do this once (when writing A) and not every time you use A. Unfortunately it seems to be a maintenance nightmare - changing B's exception handling now requires changing the documentation of all functions using B - very ugly indeed Commented Jan 28, 2011 at 15:13
  • 1
    @smasher you would need a tool to do this and I don't see how such a tool could exist. Commented Jan 28, 2011 at 15:19
  • Nice to see you are using DelphiCodeToDoc :)
    – TridenT
    Commented Jan 28, 2011 at 16:07