透過您的圖書館登入
IP:18.117.183.150
  • 學位論文

支援Java語言的例外處理架構與工具

An Exception Handling Architecture and Utility Support for Java Language

指導教授 : 謝金雲 鄭有進

摘要


對軟體開發而言,例外處理設計與實作是一個重要但卻困難的議題。在Java語言中由於區分了checked與unchecked例外而使得例外處理更加的困難。本論文提出一個包含三種例外處理能力的例外處理架構,從例外可恢復性的角度來指導在Java語言中例外處理的方式。透過應用實例,我們展示出該架構可作為引導開發人員分析與決定例外處理策略的一種概念模型。此外,我們更進一步釐清例外處理的責任並且基於此責任提出數個例外處理策略。為了讓開發人員可以方便地利用我們所提出的例外處理策略,本論文以Eclipse plug-in的形式設計與實作一個支援例外處理的工具,並說明其設計架構與應用實例。 藉由本論文所提出的方法,我們分別由系統架構面與實務面的角度來協助開發人員進行例外處理的分析、設計與實作,以期有效地增進軟體系統的強健度。

並列摘要


Exception handling is an important but difficult issue in software development. In Java, the separation of checked and unchecked exceptions aggravates the difficulty. From the recoverability perspective of exceptions, this thesis proposes an exception architectural model, which contains three levels of exception handling abilities, as a means to guide exception handling. We show that the architectural model acts as a conceptual model for evaluating and determining suitable exception handling policies. The thesis further clarifies the responsibility of exception handlers and provides several exception handling policies to aid developers in writing exception handling code. We develop an Eclipse plug-in embodying the policies to streamline its application. Its design and usage are presented as well. By covering both the architecture and the implementation perspectives, the research can assist developers in consistently analyzing, designing, and implementing exception handling programs and to effectively achieve software robustness.

參考文獻


[2] S. Stelting, Robust Java: Exception Handling, Testing and Debugging, Prentice hall PTR, 2005.
[10] R. Miller and A. Tripathi, “Issues with exception handling in object-oriented systems,” Proc. of ECOOP’97, Springer-Verlag, 1997, pp. 85-103.
[11] S. B. Lippman and J. Lajoie, C++ Primer, 3rd Edition, Addison-Wesley, 1998.
[23] J. Bloch, Effective Java Programming Language Guide, Addison Wesley, 2001.
[24] P. Haggar, Practical Java Programming Language Guide, Addison-Wesley, 1999.

被引用紀錄


蕭登益(2011)。應用敏捷式例外處理方法與工具提升既有系統強健度—以SyncFree為例〔碩士論文,國立臺北科技大學〕。華藝線上圖書館。https://doi.org/10.6841/NTUT.2011.00207
林蔚儒(2009)。Tuple-Space分散式計算強健度提升策略〔碩士論文,國立臺北科技大學〕。華藝線上圖書館。https://doi.org/10.6841/NTUT.2009.00059
洪哲瑋(2009)。例外處理程式壞味道的自動化偵測與重構〔碩士論文,國立臺北科技大學〕。華藝線上圖書館。https://doi.org/10.6841/NTUT.2009.00058
陳裕豐(2008)。一個支援例外強健度等級模型的開發輔助工具〔碩士論文,國立臺北科技大學〕。華藝線上圖書館。https://doi.org/10.6841/NTUT.2008.00555
吳義郎(2007)。應用例外處理模型與策略提升既有系統強健度之研究—以信用評分系統為例〔碩士論文,國立臺北科技大學〕。華藝線上圖書館。https://www.airitilibrary.com/Article/Detail?DocID=U0006-2901200714261400

延伸閱讀