I have check procedure:
PROCEDURE checkVariables
IS
r_Var1 exception;
r_Var2 exception;
BEGIN
If g_Name is null then
RAISE r_Var1;
End if;
If g_Prefix is null then
RAISE r_Var2;
End if;
DBMS_OUTPUT.PUT_LINE('Variables Set Up');
EXCEPTION
When r_Var1 then
DBMS_OUTPUT.PUT_LINE('Missing g_Name');
When r_Var2 then
DBMS_OUTPUT.PUT_LINE('Missing g_Prefix');
END;
If the exception is raised I want beside message also STOP/BREAK all other PL/SQL code (procedure procedure 3 and 4 will be not executed).
like:
execute procedure1
execute procedure2
execute checkVariables --raised exception, STOP/BREAK next code
execute procedure3
execute procedure4
How can I do that?