How to customize system generated exceptions 

How to customize system generated exceptions 

  
i have table id,empid,deptid where empid and deptid is unique, so when i want to create or update it shpows the exception but i wnt to show customize excetion
Hi Subudhi,

You can do a validation first (query checking your Unique index).
If the query returns Empty = False, you can raise an Exception (Create your own User Exception).

Also, you can customize your exception flow (All Exceptions in one path and MyUserException in a different path).

Cheers