Ada 95 Quality and Style Guide | Chapter 5 |
This section addresses the issues of how and when to avoid raising
exceptions, how and where to handle them, and whether to propagate
them. Information on how to use exceptions as part of the interface
to a unit includes what exceptions to declare and raise and under
what conditions to raise them. Other issues are addressed in the
guidelines in Sections 4.3 and 7.5.
5.8 USING EXCEPTIONS
Ada exceptions are a reliability-enhancing language feature designed
to help specify program behavior in the presence of errors or
unexpected events. Exceptions are not intended to provide a general
purpose control construct. Further, liberal use of exceptions
should not be considered sufficient for providing full software
fault tolerance (Melliar-Smith and Randell 1987).
< Previous Page
Search
Contents
Index
Next Page >
1
2
3
4
5
6
7
8
9
10
11
TOC
TOC
TOC
TOC
TOC
TOC
TOC
TOC
TOC
TOC
TOC
Appendix
References
Bibliography