Designing robust Java programs with exceptions

  • Robillard M
  • Murphy G
N/ACitations
Citations of this article
15Readers
Mendeley users who have this article in their library.

Abstract

Exception handling mechanisms are intended to help developers build robust systems. Although an exception handling mechanism provides a basis for structuring source code dealing with unusual situations, little information is available to help guide a developer in the appropriate application of the mechanism. In our experience, this lack of guidance leads to complex exception structures. In this paper, we reflect upon our experiences using the Java exception handling mechanism. Based on these experiences, we discuss two issues we believe underlie the difficulties encountered: exceptions are a global design problem, and exception sources are often difficult to predict in advance. We then describe a design approach, based on work by Litke for Ada programs, which we have used to simplify exception structure in existing Java programs.

Cite

CITATION STYLE

APA

Robillard, M. P., & Murphy, G. C. (2000). Designing robust Java programs with exceptions. ACM SIGSOFT Software Engineering Notes, 25(6), 2–10. https://doi.org/10.1145/357474.355046

Register to see more suggestions

Mendeley helps you to discover research relevant for your work.

Already have an account?

Save time finding and organizing research with Mendeley

Sign up for free