| Oracle FAQ | Your Portal to the Oracle Knowledge Grid | |
Home -> Community -> Usenet -> c.d.o.server -> RAISED EXCEPTION not well caught
Hello group,
I'm new to Oracle PL/SQL.
I have written a test script as follows.
BEGIN
select min(contract_start_date)
into l_min_contract_start_date
from contracts
where customer_last_name = 'Bush';
if (l_min_contract_start_date is null) then
raise NO_DATA_FOUND;
end if;
BEGIN
/* do something */
EXCEPTION WHEN NO_DATA_FOUND THEN
BEGIN
/*
do something to handle the exception within
the nearest BEGIN
*/
-- Exception Handler1
END;
END;
EXCEPTION WHEN NO_DATA_FOUND THEN
BEGIN
/*
do something to handle the excpetion raised by
contract_start_date SELECT */
-- Exception Handler2
END;
END;
What was I missing? Any insight will be appreciated!
-- "Conceal a flaw, and the world will imagine the worst." - Marcus Valerius MartialisReceived on Mon Mar 08 2004 - 14:12:38 CST
![]() |
![]() |