"The execution of a handled_sequence_of_statements consists of the execution of the Sequence_of_statements. [The optional handlers are used to handle any exceptions that are propagated by the sequence_of_statements.]
Thus, exceptions propagated by the declarative_part of the block are NOT handled by the optional handlers. Instead use:
begin
declare
Obj : constant := Get_Object( ... );
-- may raise exception No_Objects
begin
Handle( Obj );
end;
exception
when No_Objects =>
null;
end;
Customer Quote:
"DDC-I has a good solution for us and your willingness to get down to the issues and help us get what we need has made it a clear choice."