Catch duplicate primary key exeption



The code below can only catch common excption.
I want to catch duplicate primary key exeption and do something more.

How can I catch duplicate primary key exeption

try
{
Insert a record to table
}
catch (????)
{
Do some thing more
}
catch (Exception err)
{
Label1.Text=err.Message;
}


.


Loading