I need catch the error when my insert clause violate the primary key .How to write in the server function ?Thanks for any advice .