Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Re: Exception problem
Dear all,
> Is there any way to carry on processing the code after > detecting an exception ?
Yes there is. Embed your code in an extra begin and end block and code an exception clause. For example:
procedure test ( i in number)
as
j number;
k number;
begin
j := i * 10;
begin
k := 5/j;
exception
when others then
--an error occurred. k := 0;
--continue with other statements
end;
Regards Gerrit-Jan Linker,
LLLL IIII TTTTTTTTTTTT LLLL IIII TTTTTTTTTTTT LLLL IIII TTTT LLLL IIII TTTT LLLL IIII TTTT LLLL IIII TTTT LLLL IIII TTTT LLLL IIII TTTT LLLL IIII TTTT
LLLLLLLLLLLLLLLLLLLLLLLLLLLL
LLLLLLLLLLLLLLLLLLLLLLLLLLLLReceived on Sun Feb 07 1999 - 03:22:38 CST
![]() |
![]() |