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!

window.onerror doesn't catch DA PL/SQL exception anymore

Sasha GomanukeDec 8 2018 — edited Dec 11 2018

Hello, guys.

Would You explain why so great feature as window.onerror doesn't work anymore on APEX pages? I mean the following.

Create a page with button that case DA with simple PL/SQL action and code:

begin

RAISE_APPLICATION_ERROR(-20000, 'Ugly error!');

end;

Add code window.onerror = function(pMessage){ alert('Friendly error.'); } on "Execute when Page Loads" section of page.

Click button and got a something:

pastedImage_12.png

It did work in 5.*, but doesn't in 18*.

Appreciate You for any idea how to get it to work back.

PS

Look, guys, should i think about users while informing them about errors?! I dont need APEX talks after me )))

Ajax call returned server error ORA-20000: Ugly error! for Execute PL/SQL Code.

This post has been answered by John Snyders-Oracle on Dec 10 2018
Jump to Answer
Comments
Post Details
Added on Dec 8 2018
2 comments
511 views