Abstract
The problem of modeling exceptions has not been studied much: literature gives good advice, but lacks concepts about how to think up and model exceptions. We propose guidelines, based on static object model elements, on finding exceptions at modeling stage, and on organizing them. Along with this guide, we also present a thought about finding exceptions using constraints, and about composing exceptions. In order to represent the concepts needed above, we propose some additions to the UML metamodel. We conclude by showing how our proposals can solve some subtyping problems, and how they allow to catch exceptions at different levels of accuracy.
UML term, which may refer to an operation or to a method.
Acknowledgements
We would like to thank Christophe Dony, Roland Ducournau, and Thérèse Libourel for their comments and suggestions on previous versions of this paper.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Preview
Unable to display preview. Download preview PDF.
Similar content being viewed by others
References
Rational Software Corporation. UML v 1.1, Semantics, september 1997. version 1.1 ad/97-08-04.
G. Booch, J. Rumbaugh, and I. Jacobson. The Unified Modeling Language User Guide. Addison-Wesley, 1999.
]B. Stroustrup. The C++ Programming Language. Third Edition. Addison-Wesley, 1998.
K. Arnold, J. Gosling, and D. Holmes. The Java Programming Language. Third Edition. Addison-Wesley, 2000.
D. Flanagan. Java in a nutshell. Third Edition. Java 1.2. O’Reilly, 1999.
D. Flanagan. Java in a nutshell. Second Edition. Java 1.1. O’Reilly, 1997.
S. Oaks and H. Wong. Java Threads. O’Reilly, 1997.
Taligent’s Guide to Designing Programs. Copyright 1995. Taligent, Inc.
D. Meyer. Eiffel: the language. Prentice-Hall, 1992.
C. Dony, J. Purchase, and R. Winder. Exception Handling in Object-Oriented systems: Report on ECOOP’91 Workshop W4, 1991.
C. Dony. Exception Handling and Object-Oriented Programming: Towards a Synthesis. ACM SIGPLAN Notices, 25(10): 322–330, october 1990. Proceedings of ECOOP-OOPSLA’90.
J. Rumbaugh, M. Blaha, W. Premerlani, F. Eddy, and W. Lorensen. Object-Oriented Modeling and Design. Prentice Hall Inc. Englewood Cliffs, 1991.
E. Gamma, R. Helm, R. Johnson, and J. Vlissides. Design Patterns. Addison-Wesley, 1994.
T. Valkevych and S. Drossopoulou. Formalizing Java Exceptions, in ECOOP’2000 Workshop W2: Exception Handling in Object-Oriented systems. June 2000.
J.L. Knudsen. Exception Handling versus Fault Tolerance, in ECOOP’2000 Workshop W2: Exception Handling in Object-Oriented systems. June 2000.
A. Mikhailova and A. Romanovsky. Behaviour Preserving Evolution of Interface Exceptions, in ECOOP’2000 Workshop W2: Exception Handling in Object-Oriented systems. June 2000.
Author information
Authors and Affiliations
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2001 Springer-Verlag Berlin Heidelberg
About this chapter
Cite this chapter
Ahronovitz, Y., Huchard, M. (2001). Exceptions in Object Modeling: Finding Exceptions from the Elements of the Static Object Model. In: Romanovsky, A., Dony, C., Knudsen, J.L., Tripathi, A. (eds) Advances in Exception Handling Techniques. Lecture Notes in Computer Science, vol 2022. Springer, Berlin, Heidelberg. https://doi.org/10.1007/3-540-45407-1_5
Download citation
DOI: https://doi.org/10.1007/3-540-45407-1_5
Published:
Publisher Name: Springer, Berlin, Heidelberg
Print ISBN: 978-3-540-41952-5
Online ISBN: 978-3-540-45407-6
eBook Packages: Springer Book Archive