Skip to Main Content

APEX

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!

PLSQL exception in APEX

ZiutDec 15 2008 — edited Jan 21 2009
Hi

Question is: How to maintain PLSQL exception in application.

first example:
Suposse I have procedure:

..........
begin
.........
select col_one into v_col_one from table
where col_two = value;

exception

when no_data_found then
raise_application_error (-20001, 'Error....');

when too_many_rows then
raise_application_error (-20002, 'Error....');
end;


second example:

..........
my_exception exception;
begin
.........
update table
set col_one = value_one
where col_two = value_two;

if sql%rowcount = 0 then
raise my_exception;

exception
when my_exception then
/* to do */
end;

I would like to send message on the page to input correct values.
This post has been answered by 438381 on Dec 17 2008
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 18 2009
Added on Dec 15 2008
22 comments
12,454 views