Programming languages like Java, C++ have incorporated exception-handling mechanism in them. However, even after a well-tested application system has been put into production, there would frequently be some bugs reporting that some exceptions have been thrown.; The author intends to provide a series of criteria for exploiting exception-handling mechanism. The author proposes a novel technique to display the previously least-tested exception handling code in sequence diagrams. Further, the author provides a set of metrics in order to measure how well the exception handling capability in the code is. The sequence diagrams generated can show a clear picture of the control flow when exception is thrown by capturing information regarding the try/catch or throw statements. A detailed test report describing the exception handling capacity level will also be generated by this approach. These metrics and report will become a very convincing evidence for the software quality. |