Hello Tamas,
for such situations normally the inner procedure has an EXIT HANDLER logic which throws the error using RESIGNAL to the outer procedure. In the outer procedure your error handling (or ignoring) can be done using again an EXIT Handler.
A simple example (SIGNAL/RESIGNAL) can be found in the CREATE TRIGGER example section.
Regards,
Florian