Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Exception handling, with multiple try, catch exception, try again

Marius2Jul 9 2008 — edited Jul 9 2008
I'm trying to make a PL/SQL code that try something and if that fails try something different. I expect to have a few itterations of this. So far the bes I could come up with was

BEGIN
return some_function_that_might_throw_and_exception()
EXCEPTION
WHEN OTHERS THEN
BEGIN
return some_other_function_that_might_throw_and_exception()
EXCEPTION
WHEN OTHERS THEN
.
.
.
and so on.

I wondered if there is some neater way of doing this?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 6 2008
Added on Jul 9 2008
12 comments
895 views