title: How to catch a specific exception in JDBC?
body: <p>How to catch specific exceptions in <a href="http://en.wikipedia.org/wiki/Java_Database_Connectivity" rel="nofollow noreferrer">JDBC</a>? Examples: primary key exception or foreign key exception.</p>