The Gateway to Computer Science Excellence
0 votes
112 views

Consider the following Ada program:

Procedure P is
BAD-FORMAT: exception
Procedure   Q is
    begin
        ...
        if S/='b' then
            raise BAD-FORMAT
        end if;
            ...
    end Q;
    Procedure R is
    begin
        Q;
        exception when BAD-Format
                => ... handler body 1
    end R;
    begin
        R;
        Q;
        exception when BAD-FORMAT
                => ... handler body 2
    end P;

Under what conditions are the two handler bodies 1 and 2 executed?

in Programming by Veteran (105k points) | 112 views

Please log in or register to answer this question.

Related questions

Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true
50,645 questions
56,596 answers
195,825 comments
102,087 users