title: Error handling for SQL UNIQUE Constraint?
body: <p>Can there be any proper error handling be implemented into a SQL UNIQUE Constraint? So far i'm obviously getting: <code>Error: Duplicate entry 'test1' for key 'username'</code></p>
  
  <p>But i'd like to have it display a custom comment if possible</p>