Given a 'java.sql.SQLIntegrityConstraintViolationException' is it possible to determine column('s) in error
问题 Given I have an exception of type 'java.sql.SQLIntegrityConstraintViolationException' Is it possible to programmatically determine the column (or columns) in error? I ask this because I would like to map the error back to the client's data model to indicate field in error (for example a violation of a unique key). For example given a duplicate value is attempted to be inserted on a table, the 'java.sql.SQLIntegrityConstraintViolationException' exception would be thrown with the following