I need to use a Try/Catch block to check for duplicate productkey entry, however I am unsure of the exact syntax to do so.

Anyone care to get me moving in the right direction?