Hi Vinish,
If any validation which fire either it from database trigger or constrains check then how we can capture and show property message.
As most of the database errors appear like ’033-ORA-NOT VALID CONDITION’ How to capture this error and make it proper so user can easily understand.
Thanks.
You will have to catch the specific errors and then display the custom message using apex.error API method in a process. Below is an example:
The following PL/SQL code will catch the unique constraint error and will give the user-defined message:
You can check the list of pre-defined errors using this link.
You can also check the following link to learn how to log errors in the error log table whenever an error occurs.
Handle errors and log into a table