Suggested by @kutchar in #87.
We could offer some kind of equivalent of the SQL error mapping functionality in spring-jdbc - they offer a few different mechanisms for doing this - by SQL error code, by SQL state or by JDBC exception subclasses.
The error code translation allows mappings to be configured according to DB vendor using xml config.