WE have a unique key constraint on database table(safest approach to avoid duplicates) but when aware tries to add a record with duplicate directly shows database unique constraint error message. How do we modify this database message to make it user friendly? (shows Internal error- "error adding reference duplicate entry"
Constraint on a table-
ALTER TABLE table_name
ADD CONSTRAINT constraint_name UNIQUE KEY(column_1,column_2,...);