[Home] [Prev] [Next] [Index]
11. Exceptions
11. Exceptions
- 1
- This chapter defines the facilities for dealing with errors or other exceptional situations that arise during program execution. Such a situation is called an exception. To raise an exception is to abandon normal program execution so as to draw attention to the fact that the corresponding situation has arisen. Executing some actions, in response to the arising of an exception, is called handling the exception.
- 2
- An exception declaration declares a name for an exception. An exception can be raised by a raise statement, or it can be raised by another statement or operation that propagates the exception. When an exception arises, control can be transferred to a user-provided exception handler at the end of a block statement or at the end of the body of a subprogram, package, or task unit.
- 3
- References:

- block statement 5.6

- error situation 1.6

- exception handler 11.2

- name 4.1

- package body 7.1

- propagation of an exception 11.4.1

- propagation of an exception 11.4.2

- raise statement 11.3

- subprogram body 6.3

- task body 9.1
[Home] [Prev] [Next] [Index]
documentation@rational.com
Copyright © 1993-2000, Rational Software Corporation. All rights
reserved.