
-- PERFORMANCE MEASUREMENT : measure exception raise and handle time
--                           when exception is nested 4 deep in procedures

package Except_Pack_4 is

    My_Exception : exception;
    Switch : Boolean; -- controls return or raise exception

    procedure Proc_1 (Switch : Boolean); -- either returns or raises exception

    procedure Proc_2 (Switch : Boolean); -- calls PROC_1

    procedure Proc_3 (Switch : Boolean); -- calls PROC_2

    procedure Proc_4 (Switch : Boolean); -- calls PROC_3

end Except_Pack_4;