public class SQLExceptionSubclassTranslator extends AbstractFallbackSQLExceptionTranslator
SQLExceptionTranslator implementation which analyzes the specific
 SQLException subclass thrown by the JDBC driver.
 Falls back to a standard SQLStateSQLExceptionTranslator if the JDBC
 driver does not actually expose JDBC 4 compliant SQLException subclasses.
SQLTransientException, 
SQLTransientException, 
SQLRecoverableExceptionlogger| Constructor and Description | 
|---|
SQLExceptionSubclassTranslator()  | 
| Modifier and Type | Method and Description | 
|---|---|
protected DataAccessException | 
doTranslate(String task,
           String sql,
           SQLException ex)
Template method for actually translating the given exception. 
 | 
buildMessage, getFallbackTranslator, setFallbackTranslator, translate@Nullable protected DataAccessException doTranslate(String task, @Nullable String sql, SQLException ex)
AbstractFallbackSQLExceptionTranslatorThe passed-in arguments will have been pre-checked. Furthermore, this method
 is allowed to return null to indicate that no exception match has
 been found and that fallback translation should kick in.
doTranslate in class AbstractFallbackSQLExceptionTranslatortask - readable text describing the task being attemptedsql - the SQL query or update that caused the problem (if known)ex - the offending SQLExceptionSQLException;
 or null if no exception match found