Software: practice & experience vol:18 issue:5 pages:443-458
This paper describes an exception detection and exception handling method for constructive algebraic specifications. A notation that supports exception handling is introduced. First, a safety function is provided for every sort. This function characterizes each object as being safe or unsage. Secondly, axioms may contain markers that indicate when they are applicable.
The proposed notation is a trade-off between readebility and capability to handle a large class of exceptional situations. The description of exception handling promotes a two-step design method for constructive algebraic specifications. In a first step the specification is given with exception detection only; in a second step exception handling is superimposed.