"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:
"You have talented and dedicated people working for you. They are superlative. DRS appreciates their efforts and I personally am most grateful to be working with such an excellent group."