title: Catch duplicate key insert exception
body: <p>I have a table with a unique primary key column called <code>id</code>. Sometimes when I perform an <code>INSERT</code> query I get an error because the <code>id</code> value is already used.</p>
  
  <p>Can I catch this specific error with <code>try</code> and <code>catch</code>?</p>