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!

How to create a nice Error Message page?

Geert01Feb 25 2022

Hi all,
I want to create a dedicated page to inform users that an unexpected error has occurred.
I want to use the Application level 'Error Handling Function' to accomplish this.
I have created the function described here https://docs.oracle.com/database/apex-18.1/AEAPI/Example-of-an-Error-Handling-Function.htm#AEAPI2216
When I add code that intentionally divides by zero (in a page), the Error Handling function is called and the error is changed to something nicer than the standard ugly error message.
But when I add a redirect to another page at the bottom of this generic error trapping function, an ORA-20876: Stop APEX Engine is raised and the redirecting does not happen.
Also the original, ugly standard error message reappears.
Is redirecting not allowed here?
Can anybody tell me how I can accomplish this redirecting?

This post has been answered by fac586 on Feb 25 2022
Jump to Answer
Comments
Post Details
Added on Feb 25 2022
3 comments
1,259 views